{"record":{"id":"e4fa54fb02c946cc","repo":"filamentphp/filament","slug":"no-default-filament-panel-is-set-you-may-do-this","errorCode":null,"errorMessage":"No default Filament panel is set. You may do this with the `default()` method inside a Filament provider's `panel()` configuration.","messagePattern":"No default Filament panel is set\\. You may do this with the `default\\(\\)` method inside a Filament provider's `panel\\(\\)` configuration\\.","errorType":"exception","errorClass":"NoDefaultPanelSetException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/PanelRegistry.php","lineNumber":32,"sourceCode":"\n    public ?Panel $defaultPanel = null;\n\n    public function register(Panel $panel): void\n    {\n        $this->panels[$panel->getId()] = $panel;\n\n        $panel->register();\n    }\n\n    /**\n     * @throws NoDefaultPanelSetException\n     */\n    public function getDefault(): Panel\n    {\n        return $this->defaultPanel ??= Arr::first(\n            $this->panels,\n            fn (Panel $panel): bool => $panel->isDefault(),\n            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.'),\n        );\n    }\n\n    public function get(?string $id = null, bool $isStrict = true): ?Panel\n    {\n        if ($id === null) {\n            return null;\n        }\n\n        if ($isStrict) {\n            return $this->panels[$id] ?? null;\n        }\n\n        $normalize = fn (string $panelId): string => (string) str($panelId)\n            ->lower()\n            ->replace(['-', '_'], '');\n\n        $panels = [];","sourceCodeStart":14,"sourceCodeEnd":50,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/PanelRegistry.php#L14-L50","documentation":"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.","triggerScenarios":"Thrown at packages/panels/src/PanelRegistry.php:32 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"}