Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Permission

Laravel Permission Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • Create and store roles and permissions in the database
  • Assign permissions to users or attach them through roles
  • Automatic registration with Laravel Gate for can() checks
  • Simple fluent methods like assignRole() and givePermissionTo()
  • Works well for both small apps and large multi-role systems
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport