app/Http/Requests/ProductsRequest.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 [
			'cate_id' => 'required',
			'pro_name'    => 'required',
			'image' => 'image|max:5000|mimes:jpeg,jpg,png,gif',
		];
	}
public function rules ( ) { return [ 'cate_id' => 'required' , 'pro_name' => 'required' , 'image' => 'image|max:5000|mimes:jpeg,jpg,png,gif' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .