# Zizaco/entrust

Role-based Permissions for Laravel 5

Repository: https://github.com/Zizaco/entrust
Canonical: https://ross.abutalabs.com/products/entrust
Language: PHP
License: MIT
License Family: permissive
Last push: 2025-01-08T21:25:21+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4955, "days_push": 602, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6003, forks 1277 (observed 2026-08-28T04:09:34.188745+00:00)

## What it is
Entrust is a Laravel package that adds role-based permissions (RBAC) to Laravel applications, providing Role and Permission models, migrations, middleware, and Blade directives. This fork extends the original Zizaco/entrust to support Laravel 9 and 10.

## Use cases
- add role-based permissions to a Laravel app
- restrict routes by user role or permission
- manage many-to-many user role assignments
- check user abilities in Blade templates
- protect routes with role and permission middleware

## When to choose
- you need simple RBAC in a Laravel 9 or 10 project
- you want role/permission checks in Blade and route middleware
- you prefer a lightweight, well-known Laravel authorization package

## When to avoid
- you use Laravel's built-in gates and policies
- you need fine-grained or attribute-based access control
- you're on a framework other than Laravel
- you need a package with frequent active development

## Facets
- artifact type: library
- maturity: maintenance
- function: authorization, auth, middleware, orm
- domain: web-development, security, backend
- platform: php
- tags: laravel, roles, permissions, rbac, eloquent, blade-templates, web-server

## Member repositories
- Zizaco/entrust (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.188745+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-29T17:49:48.413893+00:00, confidence not recorded.
  - readme: https://github.com/Zizaco/entrust (fetched 2026-08-28T04:09:34.188745+00:00, sha bd499add00b6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
