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
You just add a model policy against the vendor model
how can i do that
It's standard laravel polices...
https://www.twilio.com/en-us/blog/what-are-laravel-policies-and-how-to-use-them-to-control-access
and apply th epolicy to the vendor model
https://github.com/eighty9nine/filament-approvals/blob/3.x/src/Models/ApprovableModel.php
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.
i have from filament shield still not worked

You will need to scope that in the policies to ensure the policy is loaded to the model
hmmm can you give me an example?
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.
still not work

why do you implement $policies and Gate()? isnt that the same thing?