app/Http/Requests/productoInstiRequest.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 [
            'nombre' => 'required|max:50 | min:3',
            'descripcion' => 'required | max:191 | min:3',
            'foto' => 'required|mimes:jpeg,bmp,png,gif|dimensions:max_width=5500,max_height=5500',
            'valor' => 'required| numeric | min:10',
            'categoria' => 'required',
            'cantidad' => 'required | numeric | min:1',
            'area' => 'required',
        ];
    }
public function rules ( ) { return [ 'nombre' => 'required|max:50 | min:3' , 'descripcion' => 'required | max:191 | min:3' , 'foto' => 'required|mimes:jpeg,bmp,png,gif|dimensions:max_width=5500,max_height=5500' , 'valor' => 'required| numeric | min:10' , 'categoria' => 'required' , 'cantidad' => 'required | numeric | min:1' , 'area' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .