acelords/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

Fund package maintenance!
santigarcor


README

68747470733a2f2f63646e2e7261776769742e636f6d2f73616e7469676172636f722f6c61726174727573742f313335616131356665636432326135313263343434333839643166386362393465373264306661372f646f63732f696d672f6c61726174727573742e737667

Why This Fork

This fork is meant to be used on AceLords projects, and thus contain other functionalities not requred in the official package by Santigarcor.

Installation

composer require acelords/laratrust

Changelog

6.3.1.1

  • Added config display_roles_permissions_being_checked that appends the roles/permissions being checked and display in abort message

NB: now read on the rest of the docs.

Laratrust (Laravel Package)

tests Latest Stable Version Total Downloads License

Version Compatibility

Laravel Laratrust
9.x 7.x
8.x 6.x
7.x 6.x
6.x 6.x
5.6.x - 5.8.x 5.2
5.3.x - 5.5.x 5.1
5.0.x - 5.2.x 4.0.

Installation, Configuration and Usage

To install, configure and learn how to use Laratrust please go to the Documentation.

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.
  • A simple administration panel for roles and permissions.
  • Laravel gates and policies.

License

Laratrust is open-sourced software licensed under the MIT license.

Contributing

Please report any issue you find in the issues page. Pull requests are more than welcome.