Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Cushty's avatar
Level 4

Share a resource with new panel

Hi what is the best way to pull in a specific resource in my user panel? I have an admin and user panel, the admin uses all resources as default, but I am not sure how to just grab one resource that has been set up and used in admin panel. I can use this in the user panel:

 ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')

but it grabs all resources. Thanks

0 likes
1 reply
aidil's avatar

Yes, because you're using discoverResources, which automatically retrieves all resources from the specified directory.

Instead of using discoverResources which pulls all resources, you can manually specify the resources you want to use

Please or to participate in this conversation.