bezhanSalleh / filament-shield

The easiest and most intuitive way to add access management to your Filament Admin Resources, Pages & Widgets through `spatie/laravel-permission`
MIT License
1.35k stars 166 forks source link

Generating all policies for a specific panel #379

Closed benzwebdev closed 2 months ago

benzwebdev commented 2 months ago

Good day!

Is there a way to generate all policies from a specific panel or specific resources from a specific panel?

I noticed in my installation that it prompts what panel should I use, so I selected the appropriate panel but it still generated the default one which is admin panel.

Thank you in advance!

pedro-vasconcelos commented 2 months ago

+1

bezhanSalleh commented 2 months ago

i don't think there is away at the moment to support multi panels. but you can generate specific resource policies so look into the generate command it has some options.