filamentphp/filament · error · LogicException
Navigation item [{$this->getLabel()}] has child items but no
Error message
Navigation item [{$this->getLabel()}] has child items but no icon. Parent items must have an icon to ensure a proper user experience. What it means
Error "Navigation item [{$this->getLabel()}] has child items but no icon. Parent items must have an icon to ensure a proper user experience." thrown in filamentphp/filament.
Source
Thrown at packages/panels/src/Navigation/NavigationItem.php:209
]);
}
public function getGroup(): string | UnitEnum | null
{
return $this->evaluate($this->group);
}
public function getParentItem(): ?string
{
return $this->evaluate($this->parentItem);
}
public function getIcon(): string | BackedEnum | Htmlable | null
{
$icon = $this->evaluate($this->icon);
if (blank($icon) && $this->getChildItems()) {
throw new LogicException("Navigation item [{$this->getLabel()}] has child items but no icon. Parent items must have an icon to ensure a proper user experience.");
}
return $icon;
}
public function isVisible(): bool
{
return ! $this->isHidden();
}
public function isHidden(): bool
{
if ($this->evaluate($this->isHidden)) {
return true;
}
return ! $this->evaluate($this->isVisible);
}View on GitHub (pinned to 53483fa934)
When it happens
Trigger: Thrown at packages/panels/src/Navigation/NavigationItem.php:209 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/0bc0421268777281.
Report an issue: GitHub.