app/Http/Requests/UpdateProductRequest.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 [
            'title'         =>  'required|min:5|max:255',
            'category_id'   =>  'required',
            'description'   =>  'required|min:5',
            'price'         =>  'required|numeric',
        ];
    }
public function rules ( ) { return [ 'title' => 'required|min:5|max:255' , 'category_id' => 'required' , 'description' => 'required|min:5' , 'price' => 'required|numeric' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// https://laravel.com/docs/5.2/validation#available-validation-rules