check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'libelle' => 'required|string|min:4|max:255|unique:dossiers,libelle', 'description' => 'nullable|string|min:4' ]; } }