F
Filament4w ago
Alan

Filament shield plugin not working?

I am using Filament Shield. While resources are correctly marked as forbidden based on permissions, How can I handle authorization for resources that share the same model name.Example my user resource and customer resource users user model when i restrict user resource for one role , i lose both the resources .
1 Reply
Vp
Vp4w ago
Create a new Model eg Customer and use protected $table = 'users' use this new Model in customer resources.. and generate policy for this new model.. and it will work
Want results from more Discord servers?
Add your server