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.
<?php
namespace App;
use Laratrust\Models\LaratrustRole;
class Role extends LaratrustRole
{
}
The Role model has three main attributes:
name — Unique name for the Role, used for looking up role information in the application layer. For example: "admin", "owner", "employee".display_name — Human readable name for the Role. Not necessarily unique and optional. For example: "User Administrator", "Project Owner", "Widget Co. Employee".description — A more detailed explanation of what the Role does. Also, optional.Both display_name and description are optional; their fields are nullable in the database.
How can I help you explore Laravel packages today?