Route not found after creating a second Panel

I created a new panel using the php artisan make:filament-panel users command After adding the service provider to config.app App\Providers\Filament\UsersPanelProvider::class I am getting the following error Route [filament.app.resources.users.index] not defined. What am I missing?
Solution:
it colides with the url of the panel?
Jump to solution
15 Replies
Thijmen
Thijmen2y ago
Is the user resource registered in that panel? Can be done by either adding it in the right folder or adding the class to ->resources([])
Hooligan Dev
Hooligan DevOP2y ago
Is iT mandatory to have a User resource?
Thijmen
Thijmen2y ago
No
Hooligan Dev
Hooligan DevOP2y ago
Then why is trying to load that route?
Thijmen
Thijmen2y ago
What does your PanelProvider look like?
Hooligan Dev
Hooligan DevOP2y ago
In fact, if I go to /users it loads this. new Panel but if I go to the root (/) it throws that error
Thijmen
Thijmen2y ago
Do you have a user resource in another panel?
Hooligan Dev
Hooligan DevOP2y ago
yes, in the admin panel
Thijmen
Thijmen2y ago
And is that located at /?
Solution
Hooligan Dev
Hooligan Dev2y ago
it colides with the url of the panel?
Thijmen
Thijmen2y ago
Can be
Hooligan Dev
Hooligan DevOP2y ago
let me try with another url for the panel
Thijmen
Thijmen2y ago
Show me the code for the panel and resource if this doesn't work
Hooligan Dev
Hooligan DevOP2y ago
That was it! Thank you so much
Thijmen
Thijmen2y ago
Great! No problem.

Did you find this page helpful?