santigarcor/laratrust
Laratrust adds role and permission management to Laravel with support for multiple user models, teams, guards, caching, events, middleware, gates/policies, and an optional admin panel for managing roles and permissions.
The migration will create five (or six if you use teams feature) tables in your database:
roles — stores role records.permissions — stores permission records.teams — stores teams records (Only if you use the teams feature).role_user — stores polymorphic relations between roles and users.permission_role — stores many-to-many relations between roles and permissions.permission_user — stores polymorphic relations between users and permissions.How can I help you explore Laravel packages today?