app/Http/Requests/Api/FeedbackRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'content' => ['required', 'string', 'min:10'],
            'mobile'  => ['required', 'regex:' . getMobileCheckRegex()],
            'name'    => ['required', 'string'],
        ];
    }
public function rules ( ) { return [ 'content' => [ 'required' , 'string' , 'min:10' ] , 'mobile' => [ 'required' , 'regex:' . getMobileCheckRegex ( ) ] , 'name' => [ 'required' , 'string' ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .