spatie/laravel-permission

Associate users with roles and permissions

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 11 minutes ago
Added to GitGenius on September 4th, 2026
Created on September 14th, 2015
Open Issues & Pull Requests: 4 (+0)
GitHub issues: Enabled
Number of forks: 1,818
Total Stargazers: 12,962 (+0)
Total Subscribers: 188 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.5 hours
Mean response time: 3.3 days
90th percentile: 6.7 days
Tracked items: 85

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 14% of issues opened in the past year have been closed. Three people close 72% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 1
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • support (8)
  • laravel-use (2)
  • duplicate (1)
  • enhancement (1)
  • help wanted (1)
  • invalid (1)
  • question (1)
  • revisit for future version (1)

Detailed Description

Laravel-permission is a package for managing user roles and permissions in Laravel applications through database storage.

The package solves the problem of implementing flexible authorization systems by allowing developers to assign roles and permissions to users and store these associations in a database. It integrates with Laravel's built-in gate authorization system, enabling permission checks using Laravel's standard `can` function. This approach decouples authorization logic from code, making permissions manageable through the database rather than hardcoded in the application.

Teams building Laravel applications with role-based access control should consider this package when they need dynamic, database-driven permission management. It suits projects where permissions may change without code deployment or where multiple roles with overlapping permissions are required. The package works within Laravel's existing authorization framework, so developers familiar with Laravel's gate and policy systems will find it a natural fit.

The project maintains active engagement with its codebase through regular updates and contributions. The maintainers provide comprehensive documentation and clear upgrade guidance for users moving between versions. The team has established a structured contribution process and maintains security practices with a dedicated security contact for vulnerability reports.