Multiple panels with own folder for resources duplicates path?
I have two panels (main on / and admin on /admin) and have the discover* options with a custom subfolder on the Resources/Pages/Widgets default paths.
The thing is that the path for a resource is being duplicated.
For reference:
- AdminPanelProvider.php: https://gist.github.com/RixzZ/09ded422435950d7c303189a9232ec5c
- UserResource.php (on App/Filament/Resources/Admin): https://gist.github.com/RixzZ/a9e426f6010726c9ea2d5c9119678781
When I access the admin panel, the UserResource is discovered, but the url ends up being /admin/admin/users.
Any idea what I did wrong?
Solution:Jump to solution
Okay... seems like you can't invert the position of the panel name in the namespace freely. By default it uses App/Filament/Admin/Resources/, and with that it works as expected.
1 Reply
Solution
Okay... seems like you can't invert the position of the panel name in the namespace freely. By default it uses App/Filament/Admin/Resources/, and with that it works as expected.