filamentphp/filament · error · NoDefaultPanelSetException

No default Filament panel is set. You may do this with the `

Error message

No default Filament panel is set. You may do this with the `default()` method inside a Filament provider's `panel()` configuration.

What it means

Error "No default Filament panel is set. You may do this with the `default()` method inside a Filament provider's `panel()` configuration." thrown in filamentphp/filament.

Source

Thrown at packages/panels/src/PanelRegistry.php:32

    public ?Panel $defaultPanel = null;

    public function register(Panel $panel): void
    {
        $this->panels[$panel->getId()] = $panel;

        $panel->register();
    }

    /**
     * @throws NoDefaultPanelSetException
     */
    public function getDefault(): Panel
    {
        return $this->defaultPanel ??= Arr::first(
            $this->panels,
            fn (Panel $panel): bool => $panel->isDefault(),
            fn () => throw new NoDefaultPanelSetException('No default Filament panel is set. You may do this with the `default()` method inside a Filament provider\'s `panel()` configuration.'),
        );
    }

    public function get(?string $id = null, bool $isStrict = true): ?Panel
    {
        if ($id === null) {
            return null;
        }

        if ($isStrict) {
            return $this->panels[$id] ?? null;
        }

        $normalize = fn (string $panelId): string => (string) str($panelId)
            ->lower()
            ->replace(['-', '_'], '');

        $panels = [];

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/panels/src/PanelRegistry.php:32 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/e4fa54fb02c946cc. Report an issue: GitHub.