You can use Laravel Permission package to easily manage roles and permissions in your app.
Package to manage access control for my application
I want to design an access control system for my application and there are my requirements and constraints
There will be a super user account which has access to all the resources along with user CRUD, they can assign roles to user, they also can CRUD on roles in addition to assigning permission to those roles, where each permissions represents and action that can be performed on a particular resource ( adding a resource, deleting it, updating it, viewing it etc.) all can be controlled from admin panel. The user and restriction on these users will only be applied on admin panel. Now based on the permission that a user's role have I need to show them the right resources and also make sure that they cannot access routes which are not intended to be access by them.
My question is how can I design this system or if there is anything already available which can provide me the scaffolding and I can modify this, or will it be faster to just make it from scratch??
Please or to participate in this conversation.