app/Http/Requests/UpdateFAQRequest.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 [
            'pergunta' => 'required|regex:/^[A-ZÀ-úa-z\s]+$/',
            'resposta' => 'required|',
            'categoria_id' => 'required|exists:categoria_perguntas,id'
        ];
    }
public function rules ( ) { return [ 'pergunta' => 'required|regex:/^[A-ZÀ-úa-z\s]+$/', 'resposta' => 'required|' , 'categoria_id' => 'required|exists:categoria_perguntas,id' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .