Skip to content

Releases: santigarcor/laratrust

7.0.0

17 Feb 17:17
Compare
Choose a tag to compare

Add:

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

6.4.0

09 Feb 17:20
Compare
Choose a tag to compare

Add

  • Possibility to add permissions from the panel.

Fix

  • CSS file loading for the panel.
  • Docs

6.3.2

03 Mar 13:43
Compare
Choose a tag to compare
  • Fix gates bug
  • Fix docs

Support PHP 8.0

09 Dec 14:28
Compare
Choose a tag to compare
6.3.1

change lowest mockery requirement

6.3.0

17 Oct 17:46
ca2a769
Compare
Choose a tag to compare

Fix

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

15 Sep 20:13
Compare
Choose a tag to compare

Fix

  • Problem when generating the database seeder #453

6.2.1

11 Sep 17:47
Compare
Choose a tag to compare
Merge branch 'master' into 6.x

Support for Laravel 8.x

08 Sep 13:48
Compare
Choose a tag to compare

Add

  • Support for Laravel 8.x.
  • Possibility to get specific columns from the allPermissions method. (4321da7)
  • Order roles and permissions in the assignment view by name. (674da2c)

6.1.1

10 Jul 14:33
Compare
Choose a tag to compare
  • 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

29 May 23:06
Compare
Choose a tag to compare

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