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