PHPackages                             santigarcor/laratrust - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. santigarcor/laratrust

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

santigarcor/laratrust
=====================

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

8.5.5(2mo ago)2.3k5.4M—1.6%382[9 issues](https://github.com/santigarcor/laratrust/issues)[4 PRs](https://github.com/santigarcor/laratrust/pulls)20MITPHPPHP &gt;=8.1CI passing

Since May 27Pushed 2mo ago73 watchersCompare

[ Source](https://github.com/santigarcor/laratrust)[ Packagist](https://packagist.org/packages/santigarcor/laratrust)[ GitHub Sponsors](https://github.com/santigarcor)[ RSS](/packages/santigarcor-laratrust/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (110)Used By (20)

[![](https://camo.githubusercontent.com/a2673ef3249090bcebc01dd69cb224565614f89b49b268b8415bd08f9ee67af3/68747470733a2f2f63646e2e7261776769742e636f6d2f73616e7469676172636f722f6c61726174727573742f313335616131356665636432326135313263343434333839643166386362393465373264306661372f646f63732f696d672f6c61726174727573742e737667)](https://camo.githubusercontent.com/a2673ef3249090bcebc01dd69cb224565614f89b49b268b8415bd08f9ee67af3/68747470733a2f2f63646e2e7261776769742e636f6d2f73616e7469676172636f722f6c61726174727573742f313335616131356665636432326135313263343434333839643166386362393465373264306661372f646f63732f696d672f6c61726174727573742e737667)

Laratrust (Laravel Package)
===========================

[](#laratrust-laravel-package)

[![Sponsor](https://camo.githubusercontent.com/3f9a3c47d5a6c575b4d6c5f13ecaf55ff585c67a6ba47f87f8cf57e4cb7a1fdc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73706f6e736f722d3330333633443f7374796c653d666f722d7468652d6261646765266c6f676f3d4769744875622d53706f6e736f7273266c6f676f436f6c6f723d237768697465)](//github.com/sponsors/santigarcor)[![Latest Stable Version](https://camo.githubusercontent.com/8d89c75cbd77a0f62df5d8cd61ce21084d78d237d5de3f11bf682004cee72542/68747470733a2f2f706f7365722e707567782e6f72672f73616e7469676172636f722f6c61726174727573742f763f7374796c653d666f722d7468652d6261646765)](//packagist.org/packages/santigarcor/laratrust)[![Total Downloads](https://camo.githubusercontent.com/835e8ffd3f4173a4b4c88f270768e8661d970843d69a9bfad53e696a5ef4810c/68747470733a2f2f706f7365722e707567782e6f72672f73616e7469676172636f722f6c61726174727573742f646f776e6c6f6164733f7374796c653d666f722d7468652d6261646765)](//packagist.org/packages/santigarcor/laratrust)[![License](https://camo.githubusercontent.com/e11a6e64dc40eb28db9c888e5092ea02189cb8987a9d0c60d4c7f58a1bbeb251/68747470733a2f2f706f7365722e707567782e6f72672f73616e7469676172636f722f6c61726174727573742f6c6963656e73653f7374796c653d666f722d7468652d6261646765)](//packagist.org/packages/santigarcor/laratrust)[![tests](https://github.com/santigarcor/laratrust/workflows/tests/badge.svg)](https://github.com/santigarcor/laratrust/actions?query=workflow%3Atests)

Version Compatibility
---------------------

[](#version-compatibility)

LaravelLaratrust10.x, 11.X, 12.X[8.x](//laratrust.santigarcor.me/docs/8.x/)9.x-10.x[7.x](//laratrust.santigarcor.me/docs/7.x/)8.x[6.x](//laratrust.santigarcor.me/docs/6.x/)7.x[6.x](//laratrust.santigarcor.me/docs/6.x/)6.x[6.x](//laratrust.santigarcor.me/docs/6.x/)5.6.x - 5.8.x[5.2](//laratrust.santigarcor.me/docs/5.2/)5.3.x - 5.5.x[5.1](//laratrust.santigarcor.me/docs/5.1/)5.0.x - 5.2.x[4.0](//github.com/santigarcor/laratrust/tree/4.0).Installation, Configuration and Usage
-------------------------------------

[](#installation-configuration-and-usage)

To install, configure and learn how to use Laratrust please go to the [Documentation](https://laratrust.santigarcor.me/).

What does Laratrust support?
----------------------------

[](#what-does-laratrust-support)

- Multiple user models.
- Multiple roles and permissions assignable to users.
- Multiple permissions assignable to roles.
- Roles and permissions verification.
- Roles and permissions caching.
- Events when roles and permissions are added, removed or synced.
- Multiple roles and permissions can be added to users within teams.
- Multiple guards for the middleware.
- A simple administration panel for roles and permissions.
- Laravel gates and policies.

License
-------

[](#license)

Laratrust is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

Contributing
------------

[](#contributing)

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

###  Health Score

77

—

ExcellentBetter than 100% of packages

Maintenance86

Actively maintained with recent releases

Popularity71

Solid adoption and visibility

Community49

Growing community involvement

Maturity89

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~33 days

Recently: every ~14 days

Total

108

Last Release

74d ago

Major Versions

4.0.x-dev → 5.2.02019-02-28

5.2.x-dev → 6.0.02020-05-06

6.x-dev → 7.0.02022-02-17

7.x-dev → 8.0.02023-03-28

8.3.1 → 9.x-dev2024-04-03

PHP version history (7 changes)1.0.0PHP &gt;=5.5.0

3.2.0PHP &gt;=5.5.9

5.1.0PHP &gt;=5.6.0

5.2.0PHP ^7.1

6.0.0PHP ^7.2

6.3.1PHP &gt;=7.2

8.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ccc5e42b3e29df199a8b2b4d60415f4f75fc16ee7dc90830b5a34c6e37ebf30?d=identicon)[santigarcor](/maintainers/santigarcor)

---

Top Contributors

[![santigarcor](https://avatars.githubusercontent.com/u/7565417?v=4)](https://github.com/santigarcor "santigarcor (576 commits)")[![filippotoso](https://avatars.githubusercontent.com/u/26958813?v=4)](https://github.com/filippotoso "filippotoso (23 commits)")[![KKSzymanowski](https://avatars.githubusercontent.com/u/13980973?v=4)](https://github.com/KKSzymanowski "KKSzymanowski (14 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (12 commits)")[![gdebrauwer](https://avatars.githubusercontent.com/u/22586858?v=4)](https://github.com/gdebrauwer "gdebrauwer (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![GeoSot](https://avatars.githubusercontent.com/u/22406063?v=4)](https://github.com/GeoSot "GeoSot (10 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (8 commits)")[![oele-dev](https://avatars.githubusercontent.com/u/1950715?v=4)](https://github.com/oele-dev "oele-dev (6 commits)")[![stevevg](https://avatars.githubusercontent.com/u/2536019?v=4)](https://github.com/stevevg "stevevg (5 commits)")[![SupianIDz](https://avatars.githubusercontent.com/u/37969970?v=4)](https://github.com/SupianIDz "SupianIDz (5 commits)")[![sumityadav](https://avatars.githubusercontent.com/u/169143?v=4)](https://github.com/sumityadav "sumityadav (4 commits)")[![Mathius17](https://avatars.githubusercontent.com/u/6528566?v=4)](https://github.com/Mathius17 "Mathius17 (4 commits)")[![denisdulici](https://avatars.githubusercontent.com/u/5254835?v=4)](https://github.com/denisdulici "denisdulici (4 commits)")[![ralbear](https://avatars.githubusercontent.com/u/3120856?v=4)](https://github.com/ralbear "ralbear (3 commits)")[![sgarcia-leantech](https://avatars.githubusercontent.com/u/65971173?v=4)](https://github.com/sgarcia-leantech "sgarcia-leantech (3 commits)")[![JeffBeltran](https://avatars.githubusercontent.com/u/22965241?v=4)](https://github.com/JeffBeltran "JeffBeltran (2 commits)")[![HazzazBinFaiz](https://avatars.githubusercontent.com/u/29161993?v=4)](https://github.com/HazzazBinFaiz "HazzazBinFaiz (2 commits)")[![GregPeden](https://avatars.githubusercontent.com/u/1343049?v=4)](https://github.com/GregPeden "GregPeden (2 commits)")[![m1kfb](https://avatars.githubusercontent.com/u/3035207?v=4)](https://github.com/m1kfb "m1kfb (2 commits)")

---

Tags

acladmin-panelauthorizationlaratrustlaravelmultiuserpermissionsphprbacrolessecureteamsphplaravelauthorizationaclrolespermissionsrbacTeamslaratrustmultiusers

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/santigarcor-laratrust/health.svg)

```
[![Health](https://phpackages.com/badges/santigarcor-laratrust/health.svg)](https://phpackages.com/packages/santigarcor-laratrust)
```

###  Alternatives

[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6712.1k2](/packages/hasinhayder-tyro)[shanmuga/laravel-entrust

This package provides a flexible solution to add ACL to Laravel

68312.9k2](/packages/shanmuga-laravel-entrust)[silvanite/novatoolpermissions

Laravel Nova Permissions (Roles and Permission based Access Control (ACL))

100256.7k2](/packages/silvanite-novatoolpermissions)[smarch/watchtower

Front-end for the Shinboi Auth system of Users / Roles / Permissions in Laravel 5

523.0k](/packages/smarch-watchtower)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
