/** * Get the validation rules that apply to the request. * * @return array */ public function rules() { if (Request::ajax()) { return []; } return ['image[]' => 'image']; }