filamentphp/filament · error · LogicException
Please use the `userMenuItems()` method on the panel configu
Error message
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
What it means
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.
Source
Thrown at packages/panels/src/FilamentManager.php:1102
{
try {
$this->getDefaultPanel()->viteTheme($theme, $buildDirectory);
} catch (NoDefaultPanelSetException $exception) {
throw new LogicException('Please use the `viteTheme()` method on the panel configuration to register themes.');
}
}
/**
* @param array<MenuItem> $items
*
* @deprecated Use the `userMenuItems()` method on the panel configuration instead.
*/
public function registerUserMenuItems(array $items): void
{
try {
$this->getDefaultPanel()->userMenuItems($items);
} catch (NoDefaultPanelSetException $exception) {
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');
}
}
/**
* @param array<class-string> $widgets
*
* @deprecated Use the `widgets()` method on the panel configuration instead.
*/
public function registerWidgets(array $widgets): void
{
try {
$this->getDefaultPanel()->widgets($widgets);
} catch (NoDefaultPanelSetException $exception) {
throw new LogicException('Please use the `widgets()` method on the panel configuration to register widgets.');
}
}
public function getDefaultThemeMode(): ThemeModeView on GitHub (pinned to 53483fa934)
When it happens
Trigger: Thrown at packages/panels/src/FilamentManager.php:1102 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17).
Data as JSON: /api/errors/34649212fcbe6c06.
Report an issue: GitHub.