PHPackages                             amirhossein/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. amirhossein/laratrust

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

amirhossein/laratrust
=====================

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

v0.0.1(8y ago)091MITPHPPHP &gt;=5.5.9

Since Jun 27Pushed 8y agoCompare

[ Source](https://github.com/A-H-Pooladvand/laratrust)[ Packagist](https://packagist.org/packages/amirhossein/laratrust)[ RSS](/packages/amirhossein-laratrust/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

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

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

[](#laratrust-laravel-5-package)

[![Build Status](https://camo.githubusercontent.com/b6c28636c6362ff5cafef53473980cd6a5ee4a8a3ee6d275c426e0e0321c2012/68747470733a2f2f7472617669732d63692e6f72672f73616e7469676172636f722f6c61726174727573742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/santigarcor/laratrust)[![Latest Stable Version](https://camo.githubusercontent.com/8a0bfc98b126dba9776ad7dcdb8297b6724e37f67979d4976605e4a43c5d99d2/68747470733a2f2f706f7365722e707567782e6f72672f73616e7469676172636f722f6c61726174727573742f762f737461626c65)](https://packagist.org/packages/santigarcor/laratrust)[![Total Downloads](https://camo.githubusercontent.com/85cb081a341b94bd3889960544cce50c05c5ca1b7f9d0a3a7f7d1a7ad30a6a67/68747470733a2f2f706f7365722e707567782e6f72672f73616e7469676172636f722f6c61726174727573742f646f776e6c6f616473)](https://packagist.org/packages/santigarcor/laratrust)[![StyleCI](https://camo.githubusercontent.com/af7ce01224752a04090e112dc16df61f3c20120e652cfd2263f157e37ceaf707/68747470733a2f2f7374796c6563692e696f2f7265706f732f35393639313230322f736869656c64)](https://styleci.io/repos/59691202)[![License](https://camo.githubusercontent.com/2a1fb46ca033eba105f3a14af7387290943d0e0082603d4049f3f6a2935fe215/68747470733a2f2f706f7365722e707567782e6f72672f73616e7469676172636f722f6c61726174727573742f6c6963656e7365)](https://packagist.org/packages/santigarcor/laratrust)[![Donate](https://camo.githubusercontent.com/9578ff88aa6346c25635a8f178f287b36f7bd7cc8380862f1565c16a8c2bbdd3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d4b6f2d2d66692d626c75652e737667)](https://ko-fi.com/V7V48I5Y)

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

For Laravel &lt; 5.2.32 please use the [4.0 branch](https://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](http://laratrust.readthedocs.io/).

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

[](#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](http://laratrust.readthedocs.io/en/5.0/troubleshooting.html).

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.

Buy me a coffee
---------------

[](#buy-me-a-coffee)

[![Buy Me a Coffee at ko-fi.com](https://camo.githubusercontent.com/05b5da3236a5838e0af7868143a788c320ce6f377dc38d35d82224d170e9e716/68747470733a2f2f617a3734333730322e766f2e6d7365636e642e6e65742f63646e2f6b6f6669312e706e673f763d30)](https://ko-fi.com/V7V48I5Y)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2925d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32410914?v=4)[Amirhossein Pooladvand](/maintainers/A-H-Pooladvand)[@A-H-Pooladvand](https://github.com/A-H-Pooladvand)

---

Tags

phplaravelauthorizationaclrolespermissionsrbacTeamslaratrustmultiusers

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[santigarcor/laratrust

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

2.3k5.6M47](/packages/santigarcor-laratrust)[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k98.0M1.3k](/packages/spatie-laravel-permission)[hasinhayder/tyro

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

6783.6k5](/packages/hasinhayder-tyro)[wnikk/laravel-access-rules

Simple system of ACR (access control rules) for Laravel, with roles, groups, unlimited inheritance and possibility of multiplayer use.

103.7k1](/packages/wnikk-laravel-access-rules)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[amdadulhaq/guard-laravel

Guard is Role and Permission management system for Laravel

135.5k](/packages/amdadulhaq-guard-laravel)

PHPackages © 2026

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