# santigarcor/laratrust

Handle roles and permissions in your Laravel application

Repository: https://github.com/santigarcor/laratrust
Canonical: https://ross.abutalabs.com/products/laratrust
Language: PHP
License: MIT
License Family: permissive
Topics: laratrust, laravel, roles, authorization, permissions, php, acl, rbac, secure, multiuser, teams, admin-panel
Last push: 2026-03-06T14:11:27+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 70, release rhythm 61, longevity 100
- inputs: {"age_days": 3752, "days_push": 180, "days_rel": 180, "gap_med": 43.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2275, forks 380 (observed 2026-08-28T04:06:33.395198+00:00)

## What it is
Laratrust is a PHP package for Laravel that manages roles and permissions (RBAC/ACL) for users, with support for multiple user models, teams, caching, and an administration panel. It integrates with Laravel gates and policies and provides middleware for role/permission checks.

## Use cases
- add role-based access control to a Laravel app
- assign multiple roles and permissions to users
- manage permissions per team in a multi-tenant application
- restrict routes with role/permission middleware
- build an admin panel to manage roles and permissions
- cache permission checks for performance
- integrate roles with Laravel gates and policies

## When to choose
- you need RBAC with roles, permissions, and teams in Laravel
- you want multiple user models with different permission sets
- you need an out-of-the-box admin panel for managing roles
- you want permission checks cached and events fired on changes

## When to avoid
- you are not using Laravel or the PHP ecosystem
- you only need simple Laravel built-in gates and policies without roles
- you need fine-grained attribute-based access control (ABAC)

## Facets
- artifact type: library
- maturity: active
- function: authorization, auth, middleware, caching
- domain: web-development, backend, security, developer-tools
- platform: php
- tags: laravel-package, rbac, acl, roles-and-permissions, teams, multi-user, admin-panel, eloquent, laravel

## Member repositories
- santigarcor/laratrust (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:33.395198+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:41:31.205098+00:00, confidence not recorded.
  - readme: https://github.com/santigarcor/laratrust (fetched 2026-08-28T04:06:33.395198+00:00, sha c16d87ea5353)
- Data as of 2026-08-30T08:39:29.467469+00:00.
