Cluster in Multiple Panels

Hi, I have a question. I'm working with multiple panels in Filament (I have 4 panels in total), and I want to manage navigation items differently for each panel. I created a navigation cluster called "Settings" for the Report panel, but I don’t want it to be shown in the Admin panel — only in the Report panel. How can I achieve this? Thank you!
2 Replies
Bruno Pereira
Bruno Pereira6d ago
In your panel config
return $panel
// ...
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->discoverClusters(in: app_path('Filament/Clusters'), for: 'App\\Filament\\Clusters');
return $panel
// ...
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->discoverClusters(in: app_path('Filament/Clusters'), for: 'App\\Filament\\Clusters');
change the path of ->discoverCusters
SoraKeyheart
SoraKeyheart2d ago
You may either use what @Bruno Pereira suggested. Or if you're using Filament Shield plugin you can hide the cluster page from roles which have access to panels of your choosing. I may guide you with this further if you still need assistance

Did you find this page helpful?