{"record":{"id":"3b74af3fd74af140","repo":"filamentphp/filament","slug":"a-configuration-with-the-key-page-getkey-h","errorCode":null,"errorMessage":"A configuration with the key [{$page->getKey()}] has already been registered for the page [{$page->page}].","messagePattern":"A configuration with the key \\[(.+?)\\] has already been registered for the page \\[(.+?)\\]\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/Panel/Concerns/HasComponents.php","lineNumber":143,"sourceCode":"    /**\n     * @param  array<class-string | PageConfiguration>  $pages\n     */\n    public function pages(array $pages): static\n    {\n        $hasCachedComponents = $this->hasCachedComponents();\n\n        foreach ($pages as $page) {\n            if ($page instanceof PageConfiguration) {\n                if (isset($this->pageConfigurations[$page->page][$page->getKey()])) {\n                    $message = \"A configuration with the key [{$page->getKey()}] has already been registered for the page [{$page->page}].\";\n\n                    if ($page->getKey() === 'default') {\n                        $message .= ' Pass a unique key to each `::make()` call to register multiple configurations for the same page.';\n                    } else {\n                        $message .= ' Each configuration for the same page must have a unique key.';\n                    }\n\n                    throw new LogicException($message);\n                }\n\n                $this->pageConfigurations[$page->page][$page->getKey()] = $page;\n\n                if (! $hasCachedComponents) {\n                    $this->queueLivewireComponentForRegistration($page->page);\n                    $this->registerToCluster($page->page);\n                }\n            } elseif (! $hasCachedComponents) {\n                $this->pages[] = $page;\n\n                $this->queueLivewireComponentForRegistration($page);\n                $this->registerToCluster($page);\n            }\n        }\n\n        return $this;\n    }","sourceCodeStart":125,"sourceCodeEnd":161,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/Panel/Concerns/HasComponents.php#L125-L161","documentation":"Error \"A configuration with the key [{$page->getKey()}] has already been registered for the page [{$page->page}].\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/Panel/Concerns/HasComponents.php:143 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"}