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