Laratrust

Laravel 5 role-based access control package

Get Started →

Build Status Latest Stable Version Total Downloads StyleCI License Gitter Donate

Laratrust is an easy and flexible way to add roles, permissions and teams authorization to Laravel 5 (>=5.2.32).

For Laravel < 5.2.32 please use the 4.0 branch.

What does Laratrust support?

  • Multiple user models.
  • Multiple roles and permissions can be attached to users.
  • Multiple permissions can be attached to roles.
  • Roles and permissions verification.
  • Roles and permissions caching.
  • Events when roles and permissions are attached, detached or synced.
  • Multiple roles and permissions can be attached to users within teams.
  • Objects ownership verification.
  • Multiple guards for the middleware.
  • Laravel gates and policies.