check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'title' => 'required|min:5|max:255', 'desc' => 'required', 'price' => 'required|numeric', 'size' => 'required|numeric', 'duration' => 'required|numeric', // 'category_id' => 'required|integer' ]; } /** * Get the validation attributes that apply to the request. * * @return array */ public function attributes() { return [ // ]; } /** * Get the validation messages that apply to the request. * * @return array */ public function messages() { return [ // ]; } }