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