app/Http/Requests/UpdateRequestReceitas.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 [
            'nome' => 'required|min:3|max:20|',
            'descricao' => 'required',
            'ingre' => 'nullable',
            'preparo' => 'nullable',
            'id_categoria' => 'required|exists:category_wines,id'
        ];
    }
public function rules ( ) { return [ 'nome' => 'required|min:3|max:20|' , 'descricao' => 'required' , 'ingre' => 'nullable' , 'preparo' => 'nullable' , 'id_categoria' => 'required|exists:category_wines,id' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .