user()->isSectionManager(); } public function rules(): array { return [ 'nom' => ['required', 'string', 'max:255'], 'description' => ['nullable', 'string'], 'source_type_id' => ['required', 'integer', 'exists:source_types,id'], 'depot_id' => ['nullable', 'integer', 'exists:depots,id'], 'cote' => ['nullable', 'string', 'max:255'], 'auteur' => ['nullable', 'string', 'max:255'], ]; } }