F
Filament3mo ago
Cushty

Share a resource with new panel

Hi what is the best way to pull in a specifice resource in my user panel? I have an admin and user panel, the admin uses all resourses as default, but I am not sure how to just grab one resource that has been setup and used in admin panel. i can use this in user panel:
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
but it grabs all resources. Thanks
Solution:
You can specify specific resources for the panel with ->resources([Resource::class])
Jump to solution
2 Replies
Solution
awcodes
awcodes3mo ago
You can specify specific resources for the panel with ->resources([Resource::class])
Cushty
CushtyOP3mo ago
Thanks.
Want results from more Discord servers?
Add your server