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
Hello,
sorry for my question, i am new in "hobby" coding. I saw you link but sadly didnt find the correct answer yet. In my understanding these roles should be stored in the database bind to the assigned users right? But how did you do that? In code? Start with using your default laravel project for some playing with code.
Thanks for your help.
Hi,
For Metronic Laravel permission feature, we use spatie/laravel-permission
plugin.
https://spatie.be/docs/laravel-permission/v5/introduction
Thanks
Those tables are from https://spatie.be/docs/laravel-permission/v5/introduction