filamentphp/filament · error · LogicException
A configuration with the key [{$page->getKey()}] has already
Error message
A configuration with the key [{$page->getKey()}] has already been registered for the page [{$page->page}]. What it means
Error "A configuration with the key [{$page->getKey()}] has already been registered for the page [{$page->page}]." thrown in filamentphp/filament.
Source
Thrown at packages/panels/src/Panel/Concerns/HasComponents.php:143
/**
* @param array<class-string | PageConfiguration> $pages
*/
public function pages(array $pages): static
{
$hasCachedComponents = $this->hasCachedComponents();
foreach ($pages as $page) {
if ($page instanceof PageConfiguration) {
if (isset($this->pageConfigurations[$page->page][$page->getKey()])) {
$message = "A configuration with the key [{$page->getKey()}] has already been registered for the page [{$page->page}].";
if ($page->getKey() === 'default') {
$message .= ' Pass a unique key to each `::make()` call to register multiple configurations for the same page.';
} else {
$message .= ' Each configuration for the same page must have a unique key.';
}
throw new LogicException($message);
}
$this->pageConfigurations[$page->page][$page->getKey()] = $page;
if (! $hasCachedComponents) {
$this->queueLivewireComponentForRegistration($page->page);
$this->registerToCluster($page->page);
}
} elseif (! $hasCachedComponents) {
$this->pages[] = $page;
$this->queueLivewireComponentForRegistration($page);
$this->registerToCluster($page);
}
}
return $this;
}View on GitHub (pinned to 53483fa934)
When it happens
Trigger: Thrown at packages/panels/src/Panel/Concerns/HasComponents.php:143 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/3b74af3fd74af140.
Report an issue: GitHub.