I think you need something like this to manage roles and permissions, which can be later translated to a view where your grant a role or revoke it.
Implementing Multiple Roles Access Controls in Laravel
I almost have my authentication system where I want it for a Fire Department application I am rebuilding. I have one hopefully small issue that still needs to be solved. But it does work for now. Now I need to implement code that restricts or grants access to certain controllers, pages or certain data on a page to some users, but not others. For instance...
USER 1 Roles:
-- General access ( as defined as just being logged in)
-- Admin Access (has access to Admin areas fo the app)
-- Leave Management (has the ability to manage sick leave, vacations, personal days, etc).
User 2 Roles:
-- General access ( as defined as just being logged in)
-- Incident Reporting (has access to incident reporting)
-- Company Operations App (has access to the CO App)
Is there any good documentation or videos on how to achieve such a thing. When I built the original app in ColdFusion, when each user logged in, a session variable with a comma-separated list of permissions was stored in the users' session. Then all I had to do was use "isusuerinanyrole(General, Admin) or isusuerinanyrole(General, Incidents, CompanyOps) to grant or deny access to the roles defined in "isuserinanyrole".
TIA
Please or to participate in this conversation.