Laratrust Versions Save

Handle roles and permissions in your Laravel application

7.0.0

2 years ago

Add:

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

6.4.0

2 years ago

Add

  • Possibility to add permissions from the panel.

Fix

  • CSS file loading for the panel.
  • Docs

6.3.2

3 years ago
  • Fix gates bug
  • Fix docs

6.3.1

3 years ago

6.3.0

3 years ago

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

3 years ago

Fix

  • Problem when generating the database seeder #453

6.2.1

3 years ago

6.2.0

3 years ago

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

3 years ago
  • 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

3 years ago

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' => [],
        ],