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
8.5.5

What's Changed

Full Changelog: https://github.com/santigarcor/laratrust/compare/8.5.4...8.5.5

8.5.1

What's Changed

New Contributors

Full Changelog: https://github.com/santigarcor/laratrust/compare/8.5.0...8.5.1

8.5.0

What's Changed

New Contributors

Full Changelog: https://github.com/santigarcor/laratrust/compare/8.4.1...8.5.0

8.4.1

What's Changed

New Contributors

Full Changelog: https://github.com/santigarcor/laratrust/compare/8.4.0...8.4.1

8.4.0
8.3.2

What's Changed

New Contributors

Full Changelog: https://github.com/santigarcor/laratrust/compare/8.3.0...8.3.2

7.2.1
8.3.1
8.3.0
8.2.2

Fix Str::contains deprecation

8.2.0
  • Add possibility to pass extra params to the permissions as gates as the team and requireAll. (a7459625cee7d0e2af59335ebbfb716f62096a04)
8.1.0
  • Add backed enums support #627
  • Fix wrong import in stub #629
8.0.1

Fix blade directive

8.0.0

Added

  • Type hints compatible with latest PHP
  • Support for custom checker classes

Changed

  • Methods and event names to a more human readable language

Removed

  • Ownership feature
7.2.0
7.1.0

Add

  • Make panel views publishable
  • Bump kkszymanowski/traitor version
7.0.0

Add:

  • Laravel 9 support
  • Don't use cache in non production environments #545
6.4.0

Add

  • Possibility to add permissions from the panel.

Fix

  • CSS file loading for the panel.
  • Docs
6.3.2
  • Fix gates bug
  • Fix docs
6.3.1
6.3.0

Fix

  • #381

Change

  • Publish the seeder configuration as a separate resource
  • Seeder rework

Add

  • permissionsTeams relationship and allTeams method
  • Teams scope for allPermissions method
6.2.2

Fix

  • Problem when generating the database seeder #453
6.2.1
6.2.0

Add

  • Support for Laravel 8.x.
  • Possibility to get specific columns from the allPermissions method. (4321da77393bdbc21a7cf791578da3c243921c38)
  • Order roles and permissions in the assignment view by name. (674da2c99d93ab91e404a6d61dfceb6a32fe458f)
6.1.1
  • Change how the seeder creates permissions names.
  • Add env variable usage to enable/disable cache.
  • Use ::class syntax in the config file by default.
6.1.0

Add roles restrictions in the admin panel

This release enables the possibility to add restriction to roles in the admin panel. Now you can define which roles shouldn't be editable, removable or deletable in the admin panel.

In order to use this feature if you installed the 6.0 version you simply have to add this to the panel section in your config/laratrust.php file:


       /*
        |--------------------------------------------------------------------------
        | Add restriction to roles in the panel
        |--------------------------------------------------------------------------
        |
        | Configure which roles can not be editable, deletable and removable.
        | To add a role to the restriction, use name of the role here.
        |
        */
        'roles_restrictions' => [
            // The user won't be able to remove roles already assigend to users.
            'not_removable' => [],

            // The user won't be able to edit the role and the permissions assigned.
            'not_editable' => [],

            // The user won't be able to delete the role.
            'not_deletable' => [],
        ],
6.0.0
  • Add simple admin panel to manage roles, permissions and roles/permissions assignment to the users
  • Change how the Seeder works, in order to only use the role structure we had before
  • Remove the can method so we now support gates and policies out of the box
  • Add withoutRole and withoutPermission scopes
  • Add support to receive multiple roles and permisions in the whereRoleIs and wherePermissionIs methods.
  • Laratrust is now using semver.
5.2.8
5.2.7

Add

  • Rollback teams' foreign keys and table in migrations
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