user()->isAdmin(); } public function rules(): array { return [ 'nom' => ['required', 'string', 'max:255'], 'description' => ['nullable', 'string'], 'adresse_postale' => ['nullable', 'string', 'max:500'], 'url' => ['nullable', 'url', 'max:500'], ]; } }