Ross ROSS = Recommend OSS · open-source software intelligence for agents

spatie/laravel-permission

Some data may be outdated — see provenance labels.

Associate users with roles and permissions observed · 2026-09-29

github.com/spatie/laravel-permission · homepage · PHP · MIT (permissive) observed · 2026-09-29

Health v2 · maintenance only

91/100

  • Activity 93
  • Release rhythm 84
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: 7.0
  • age_days: 4054
  • days_rel: 109
  • days_push: 46
  • n_releases_24m: 33

Full methodology

Adoption not part of the score

12965 stars · 1816 forks observed · 2026-09-29

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A Laravel package that lets you associate users (and other Eloquent models) with roles and permissions stored in the database. Permissions are registered with Laravel's gate so they work with the standard `can` checks and Blade `@can` directives.

Use cases

  • add role-based access control to a Laravel app
  • assign permissions to users in a database
  • group permissions into roles like writer or admin
  • check user permissions with Laravel's can() and Blade @can
  • manage permissions across multiple auth guards
  • restrict API or page access based on user roles

When to choose

  • you are building a Laravel application and need RBAC
  • you want roles and permissions persisted in your database via Eloquent
  • you want permissions to integrate with Laravel's native gate and Blade directives
  • you need multi-guard support for separate permission sets

When to avoid

  • you are not using Laravel or Eloquent
  • you need fine-grained, attribute-based or policy-heavy authorization beyond simple roles/permissions
  • you need a standalone authorization service independent of your PHP framework

Facets

library · maturity stable

authorization auth middleware web-development backend security developer-tools php self-hosted laravel roles-and-permissions rbac eloquent spatie gate-integration web-server

10 sources

Member repositories

RepositoryRoleHealth v2
spatie/laravel-permissionmain91

For agents

markdown · JSON · MCP: product_card(name="spatie/laravel-permission")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem