Bad time setting up clusters
I'm having a really bad time setting up clusters for navigation. I followed the documentation in https://filamentphp.com/docs/3.x/panels/clusters, created the resources (I've created more than one to see if this was the problem) but it simply does not show the subpanel.
My steps were:
- Adding
->discoverClusters(in: app_path('Filament/Clusters'), for: 'App\\Filament\\Clusters')
to my panel provider file;
- Creating the cluster via php artisan make:filament-cluster ClusterName
(it automatically added the $cluster
property to the resource class)
It only shows the cluster in my sidebar but no sub-items (even though I have 2 resources created under that cluster).
Are there any extra configuration steps that I need to do in order to get these clusters set up?
I'm currently designing a "small" ERP using Filament, so I think that the sidebar may get a little big π1 Reply
Just recreated the Panel provider using
php artisan filament:install --panels
and it worked. Seems like it needed to run php artisan filament:upgrade
in order to clean cache stuff.
Thanks @Leandro Ferreira!