Approval Plugin

I'm using eigthynine filament approval plugin. I have an issue where the configuration Resource shows on all user roles and I have to change the filament resource on the vendor to hide/disable the resource from other user roles. Is there an alternative fix besides on editing the vendor? Here is the link of the plugin: https://filamentphp.com/plugins/eightynine-approvals
Filament
Approvals by Eighty Nine - Filament
This package allows you to easily implement approval flows in your Laravel Filament application.
10 Replies
toeknee
toeknee3mo ago
You just add a model policy against the vendor model
hrvzmndz
hrvzmndz3mo ago
how can i do that
toeknee
toeknee3mo ago
Twilio
How to Use Laravel Policies to Control Access
In this tutorial, you'll learn about how to implement access control in Laravel applications using Laravel Policies. Learn more with Twilio.
GitHub
filament-approvals/src/Models/ApprovableModel.php at 3.x · eighty9n...
Contribute to eighty9nine/filament-approvals development by creating an account on GitHub.
hrvzmndz
hrvzmndz3mo ago
i have from filament shield still not worked
No description
toeknee
toeknee3mo ago
You will need to scope that in the policies to ensure the policy is loaded to the model
hrvzmndz
hrvzmndz3mo ago
hmmm can you give me an example?
toeknee
toeknee3mo ago
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
hrvzmndz
hrvzmndz3mo ago
still not work
No description
Rolland
Rolland2mo ago
why do you implement $policies and Gate()? isnt that the same thing?

Did you find this page helpful?