{"record":{"id":"34649212fcbe6c06","repo":"filamentphp/filament","slug":"please-use-the-usermenuitems-method-on-the-pan","errorCode":null,"errorMessage":"Please use the `userMenuItems()` method on the panel configuration to register user menu items. See the documentation - https://filamentphp.com/docs/panels/navigation#customizing-the-user-menu","messagePattern":"Please use the `userMenuItems\\(\\)` method on the panel configuration to register user menu items\\. See the documentation - https://filamentphp\\.com/docs/panels/navigation#customizing-the-user-menu","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/FilamentManager.php","lineNumber":1102,"sourceCode":"    {\n        try {\n            $this->getDefaultPanel()->viteTheme($theme, $buildDirectory);\n        } catch (NoDefaultPanelSetException $exception) {\n            throw new LogicException('Please use the `viteTheme()` method on the panel configuration to register themes.');\n        }\n    }\n\n    /**\n     * @param  array<MenuItem>  $items\n     *\n     * @deprecated Use the `userMenuItems()` method on the panel configuration instead.\n     */\n    public function registerUserMenuItems(array $items): void\n    {\n        try {\n            $this->getDefaultPanel()->userMenuItems($items);\n        } catch (NoDefaultPanelSetException $exception) {\n            throw new LogicException('Please use the `userMenuItems()` method on the panel configuration to register user menu items. See the documentation - https://filamentphp.com/docs/panels/navigation#customizing-the-user-menu');\n        }\n    }\n\n    /**\n     * @param  array<class-string>  $widgets\n     *\n     * @deprecated Use the `widgets()` method on the panel configuration instead.\n     */\n    public function registerWidgets(array $widgets): void\n    {\n        try {\n            $this->getDefaultPanel()->widgets($widgets);\n        } catch (NoDefaultPanelSetException $exception) {\n            throw new LogicException('Please use the `widgets()` method on the panel configuration to register widgets.');\n        }\n    }\n\n    public function getDefaultThemeMode(): ThemeMode","sourceCodeStart":1084,"sourceCodeEnd":1120,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/FilamentManager.php#L1084-L1120","documentation":"Error \"Please use the `userMenuItems()` method on the panel configuration to register user menu items. See the documentation - https://filamentphp.com/docs/panels/navigation#customizing-the-user-menu\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/FilamentManager.php:1102 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}