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
Thijmen15mo 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 DevOP15mo ago
Is iT mandatory to have a User resource?
Thijmen
Thijmen15mo ago
No
Hooligan Dev
Hooligan DevOP15mo ago
Then why is trying to load that route?
Thijmen
Thijmen15mo ago
What does your PanelProvider look like?
Hooligan Dev
Hooligan DevOP15mo 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
Thijmen15mo ago
Do you have a user resource in another panel?
Hooligan Dev
Hooligan DevOP15mo ago
yes, in the admin panel
Thijmen
Thijmen15mo ago
And is that located at /?
Solution
Hooligan Dev
Hooligan Dev15mo ago
it colides with the url of the panel?
Thijmen
Thijmen15mo ago
Can be
Hooligan Dev
Hooligan DevOP15mo ago
let me try with another url for the panel
Thijmen
Thijmen15mo ago
Show me the code for the panel and resource if this doesn't work
Hooligan Dev
Hooligan DevOP15mo ago
That was it! Thank you so much
Thijmen
Thijmen15mo ago
Great! No problem.

Did you find this page helpful?