Roles for admin and super admins #949
-
Hello, I'm starting to learn Laravel, don't judge too harshly :) in my admin panel there is a super admin, and company admins, the company administrator has access to information regarding his company, while the super admin has access to information about all companies I'm trying to implement the creation of roles by a company administrator, I created the BranchRoles model for this purpose, values in the table branch_roles: id, branch_id, role_id how, when creating a role, having a company administrator group, add an entry to the branch_roles table stating that this role belongs to the current company, but if the role is created by a super administrator, then do not add a link to the company, or allow to select a company from the list where you want to add this role I don’t understand how to implement this correctly, please help :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @craftenergy22 You should try https://github.com/Laravel-Backpack/PermissionManager Users, Roles, and Permissions thing is ready to use - No need to create them from scratch. |
Beta Was this translation helpful? Give feedback.
Hey @craftenergy22
You should try https://github.com/Laravel-Backpack/PermissionManager
Users, Roles, and Permissions thing is ready to use - No need to create them from scratch.