{"record":{"id":"d74f31a69e9498fc","repo":"filamentphp/filament","slug":"please-use-the-widgets-method-on-the-panel-con","errorCode":null,"errorMessage":"Please use the `widgets()` method on the panel configuration to register widgets.","messagePattern":"Please use the `widgets\\(\\)` method on the panel configuration to register widgets\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/FilamentManager.php","lineNumber":1116,"sourceCode":"    {\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\n    {\n        return $this->getCurrentOrDefaultPanel()->getDefaultThemeMode();\n    }\n\n    public function arePasswordsRevealable(): bool\n    {\n        return $this->getCurrentOrDefaultPanel()->arePasswordsRevealable();\n    }\n\n    public function getCurrentDomain(?string $testingDomain = null): string\n    {\n        if (filled($this->currentDomain)) {\n            return $this->currentDomain;\n        }","sourceCodeStart":1098,"sourceCodeEnd":1134,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/FilamentManager.php#L1098-L1134","documentation":"Error \"Please use the `widgets()` method on the panel configuration to register widgets.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/FilamentManager.php:1116 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"}