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