Weave 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

Entrust Laravel Package

gghughunishvili/entrust

Entrust is a Laravel package for flexible role-based access control. Assign roles and permissions to users, protect routes with middleware, and manage authorization through a simple API and Blade helpers.

View on GitHub
Deep Wiki
Context7

Entrust is a flexible role-based access control (RBAC) package for Laravel. It lets you assign roles to users and attach permissions to those roles, giving you a clean, database-driven way to manage authorization across your application.

Roles and permissions are stored via migrations and managed through simple model relationships, so you can grant, revoke, and check access with expressive methods like $user->attachRole() and $user->can(). Built-in middleware and Blade directives make it easy to protect routes and conditionally render UI.

  • Assign multiple roles per user and multiple permissions per role
  • Route protection via EntrustRole, EntrustPermission, and EntrustAbility middleware
  • Blade directives (@role, @permission) for conditional views
  • Convenient artisan commands and migrations for quick setup
  • Simple permission checks through the HasRole trait
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.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections