{"record":{"id":"0bc0421268777281","repo":"filamentphp/filament","slug":"navigation-item-this-getlabel-has-child-it","errorCode":null,"errorMessage":"Navigation item [{$this->getLabel()}] has child items but no icon. Parent items must have an icon to ensure a proper user experience.","messagePattern":"Navigation item \\[(.+?)\\] has child items but no icon\\. Parent items must have an icon to ensure a proper user experience\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/Navigation/NavigationItem.php","lineNumber":209,"sourceCode":"        ]);\n    }\n\n    public function getGroup(): string | UnitEnum | null\n    {\n        return $this->evaluate($this->group);\n    }\n\n    public function getParentItem(): ?string\n    {\n        return $this->evaluate($this->parentItem);\n    }\n\n    public function getIcon(): string | BackedEnum | Htmlable | null\n    {\n        $icon = $this->evaluate($this->icon);\n\n        if (blank($icon) && $this->getChildItems()) {\n            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.\");\n        }\n\n        return $icon;\n    }\n\n    public function isVisible(): bool\n    {\n        return ! $this->isHidden();\n    }\n\n    public function isHidden(): bool\n    {\n        if ($this->evaluate($this->isHidden)) {\n            return true;\n        }\n\n        return ! $this->evaluate($this->isVisible);\n    }","sourceCodeStart":191,"sourceCodeEnd":227,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/Navigation/NavigationItem.php#L191-L227","documentation":"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.","triggerScenarios":"Thrown at packages/panels/src/Navigation/NavigationItem.php:209 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"}