Releases: santigarcor/laratrust
Releases · santigarcor/laratrust
7.0.0
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
Support PHP 8.0
6.3.1 change lowest mockery requirement
6.3.0
6.2.2
6.2.1
Merge branch 'master' into 6.x
Support for Laravel 8.x
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' => [],
],