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 Bhone16mo 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 Bhone16mo ago
I'm not sure. This is the best way to do this.
mgkyawzayya
mgkyawzayyaOP16mo ago
Thanks bro
Shaung Bhone
Shaung Bhone16mo ago
please mark as solution with bot. App>Mark solution.
Want results from more Discord servers?
Add your server