F
Filament15mo ago
RixzZ

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:
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.
Jump to solution
1 Reply
Solution
RixzZ
RixzZ15mo ago
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.
Want results from more Discord servers?
Add your server