User select
Hello, I'm starting to use FilamentPHP and would like to ask a question. How do I limit the user select to display only those with the role of realtor? I use this plugin:
https://v2.filamentphp.com/plugins/althinect-spatie-roles-permissions
Filament
Spatie Roles Permissions by Tharinda Rodrigo - Plugins - Filament
Resources for Roles and Permissions.
Generate Permissions based on Models and Resources.
Generate Policies.
Manage Permissions for teams.
3 Replies
I managed to do it with this:
That does it,. I think you can do:
->role('Realtor')
without the where because of the RolesTrait