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?15 Replies
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([])
Is iT mandatory to have a User resource?
No
Then why is trying to load that route?
What does your PanelProvider look like?
In fact, if I go to /users it loads this. new Panel
but if I go to the root (/)
it throws that error
Do you have a user resource in another panel?
yes, in the admin panel
And is that located at
/
?Solution
it colides with the url of the panel?
Can be
let me try with another url for the panel
Show me the code for the panel and resource if this doesn't work
That was it!
Thank you so much
Great!
No problem.