---
layout: 'Home'
actionText: Get Started →
actionLink: /docs/
footer: MIT Licensed | Copyright © 2018-present Santiago Garcia
title: Laravel role-based access control package
tagline: Laravel role-based access control package
---

[![tests](https://github.com/santigarcor/laratrust/workflows/tests/badge.svg)](https://github.com/santigarcor/laratrust/actions?query=workflow%3Atests)
[![Latest Stable Version](https://poser.pugx.org/santigarcor/laratrust/v)](//packagist.org/packages/santigarcor/laratrust)
[![Total Downloads](https://poser.pugx.org/santigarcor/laratrust/downloads)](//packagist.org/packages/santigarcor/laratrust)
[![StyleCI](https://styleci.io/repos/59691202/shield)](https://styleci.io/repos/59691202)
[![License](https://poser.pugx.org/santigarcor/laratrust/license)](//packagist.org/packages/santigarcor/laratrust)

Laratrust is an easy and flexible way to add roles, permissions and teams authorization to **Laravel**.

## Version Compatibility

 Laravel  | Laratrust
:---------|:----------
 9.x    | [7.x](/docs/7.x/)
 8.x    | [6.x](/docs/6.x/)
 7.x    | [6.x](/docs/6.x/)
 6.x    | [6.x](/docs/6.x/)
 5.6.x - 5.8.x    | [5.2](/docs/5.2/)
 5.3.x - 5.5.x    | [5.1](/docs/5.1/)
 5.0.x - 5.2.x    | [4.0](https://github.com/santigarcor/laratrust/tree/4.0).

## 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.