check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ // * Dossier 'd' => 'sometimes|numeric', // * Sujet 's' => 'sometimes|exists:sujets,codeSujet', // * text search 't' => 'sometimes|string', // * Recherche 'r' => 'sometimes|exists:recherches,id' ]; } }