filamentphp/filament · error · LogicException
Please use the `pages()` method on the panel configuration t
Error message
Please use the `pages()` method on the panel configuration to register pages.
What it means
Error "Please use the `pages()` method on the panel configuration to register pages." thrown in filamentphp/filament.
Source
Thrown at packages/panels/src/FilamentManager.php:1010
{
try {
$this->getDefaultPanel()->navigationItems($items);
} catch (NoDefaultPanelSetException $exception) {
throw new LogicException('Please use the `navigationItems()` method on the panel configuration to register navigation items. See the documentation - https://filamentphp.com/docs/panels/navigation#registering-custom-navigation-items');
}
}
/**
* @param array<class-string> $pages
*
* @deprecated Use the `pages()` method on the panel configuration instead.
*/
public function registerPages(array $pages): void
{
try {
$this->getDefaultPanel()->pages($pages);
} catch (NoDefaultPanelSetException $exception) {
throw new LogicException('Please use the `pages()` method on the panel configuration to register pages.');
}
}
/**
* @deprecated Use the `renderHook()` method on the panel configuration instead.
*/
public function registerRenderHook(string $name, Closure $hook): void
{
FilamentView::registerRenderHook($name, $hook);
}
/**
* @param array<class-string> $resources
*
* @deprecated Use the `resources()` method on the panel configuration instead.
*/
public function registerResources(array $resources): void
{View on GitHub (pinned to 53483fa934)
When it happens
Trigger: Thrown at packages/panels/src/FilamentManager.php:1010 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/65b90911aa023fd4.
Report an issue: GitHub.