app/Http/Requests/StoreVinhosRequest.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:5|max:150',
            'id_categoria' => 'required|exists:category_wines,id',
            'id_produtor' => 'required|exists:users,id',
            'img' => 'nullable',
            'descricao'  => "required",
            'regiao'  => "required",
			'qnt_cl'  => "required",
			'perct_alco'  => 'required|gt:0|lt:101',
        ];
    }
public function rules ( ) { return [ 'nome' => 'required|min:5|max:150' , 'id_categoria' => 'required|exists:category_wines,id' , 'id_produtor' => 'required|exists:users,id' , 'img' => 'nullable' , 'descricao' => " required " , 'regiao' => " required " , 'qnt_cl' => " required " , 'perct_alco' => 'required|gt:0|lt:101' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .