How can I use same Resources for multiple panels?

Example - I have Invoice Resources. I want to get access from Admin, Manager and Sale . How should I implement?
Solution:
@mgkyawzayya I think you need to implement two discoverResources in your panel provider. Like that. ```php ->discoverResources( app_path('Filament/App/Resources'), 'App\Filament\App\Resources', )...
Jump to solution
4 Replies
Solution
Shaung Bhone
Shaung Bhone2y ago
@mgkyawzayya I think you need to implement two discoverResources in your panel provider. Like that.
->discoverResources(
app_path('Filament/App/Resources'), 'App\\Filament\\App\\Resources',
)
->discoverResources(
app_path('Filament/Resources'), 'App\\Filament\\Resources'
)
->discoverResources(
app_path('Filament/App/Resources'), 'App\\Filament\\App\\Resources',
)
->discoverResources(
app_path('Filament/Resources'), 'App\\Filament\\Resources'
)
Shaung Bhone
Shaung Bhone2y ago
I'm not sure. This is the best way to do this.
mgkyawzayya
mgkyawzayyaOP2y ago
Thanks bro
Shaung Bhone
Shaung Bhone2y ago
please mark as solution with bot. App>Mark solution.

Did you find this page helpful?