FilamentF
Filament17mo 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')


but it grabs all resources. Thanks
Solution
You can specify specific resources for the panel with ->resources([Resource::class])
Was this page helpful?