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

Laratrust Laravel Package

santigarcor/laratrust

Laratrust adds role and permission management to Laravel with support for multiple user models, teams, guards, caching, events, middleware, gates/policies, and an optional admin panel for managing roles and permissions.

View on GitHub
Deep Wiki
Context7

::: warning WARNING You are using an old version of Laratrust. Consider updating to the latest version :::

Installation

  1. In order to install Laratrust in your Laravel project, just run the composer require command from your terminal:
composer require "santigarcor/laratrust:5.2.*"

::: tip NOTE Since this version requires Laravel >= 5.6 you don't need to do steps 2 and 3. :::

  1. Then in your config/app.php add the following to the providers array:
Laratrust\LaratrustServiceProvider::class,
  1. In the same config/app.php add the following to the aliases array:
'Laratrust'   => Laratrust\LaratrustFacade::class,
  1. Publish all the configuration files:
php artisan vendor:publish --tag="laratrust"

::: warning If this command did not publish any files, chances are, the Laratrust service provider hasn't been registered. Try clearing your configuration cache

php artisan config:clear

:::

  1. The middleware are registered automatically as role, permission and ability . If you want to customize or change them, please refer to the middleware configuration
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