spatie/laravel-permission
Manage roles and permissions in Laravel using database-backed models integrated with Laravel’s Gate. Assign roles to users, grant permissions directly or via roles, and authorize actions with the familiar can() checks. Includes docs for setup and usage.
spatie/laravel-permission adds robust role and permission management to Laravel using a database-backed model. Assign abilities directly to users or via roles, and leverage Laravel’s native Gate integration for clean authorization checks.
Designed for clarity and scalability, it lets you manage access control with familiar APIs and use $user->can() throughout your app.
can() checksassignRole() and givePermissionTo()How can I help you explore Laravel packages today?