Laravel Authorization
Hi,
I'm using Metronic 8 with Laravel, and there are some tables such as 'roles', 'permissions', 'role_has_permissions', 'model_has_roles' and 'model_has_permissions' to handle authorization.
I couldn't figure out how to use these tables, especially last two tables. Also, there is no field in a table to bind users with roles. How should I use these tables? How should I bind users with roles?
Can you help me how to use them? Do you have any documentation for it?
Thanks in advance
Replies (2)
Those tables are from https://spatie.be/docs/laravel-permission/v5/introduction
Hi,
For Metronic Laravel permission feature, we use spatie/laravel-permission
plugin.
https://spatie.be/docs/laravel-permission/v5/introduction
Thanks