Visible and Hidden are not working on NavigationItem in NavigationBuilder array
For some reason, neither
hidden()
nor visible()
is working!
2 Replies
It works, when I append the following file and add
@if($item->isVisible())
around <x-filament-panels::sidebar.item
https://github.com/filamentphp/filament/blob/3.x/packages/panels/resources/views/components/sidebar/group.blade.phpGitHub
filament/packages/panels/resources/views/components/sidebar/group.b...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
I created a pull request here which should solve the issue
https://github.com/filamentphp/filament/pull/8553
GitHub
Respect isVisible() in NavigationItem by mabdelfattah · Pull Reques...
It is already well documented, but for some reason was not working/implemented.
Changes have been thoroughly tested to not break existing functionality.
New functionality has been documented or ...