I am using this package https://github.com/spatie/laravel-permission for roles and permissions. In my application i have several roles like:
- Users
- Employers
- Shop owners
- Vendors
Depending on the level of trust i want each person in a specific role to have access to specific permissions only. For a user of role user
with id 7
i want him or her to have permissions editor
,'shopping` and no other permission.
Another user of id 65
in the same role user
can have editor
,'shopping,'edit profile
,'view maps' permissions.
When i look at the docs https://docs.spatie.be/laravel-permission/v3/basic-usage/role-permissions/
can a user in a specific role be given a permission different from another user in the same role?