Releases: santigarcor/laratrust
Releases · santigarcor/laratrust
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
andwithoutPermission
scopes - Add support to receive multiple roles and permisions in the
whereRoleIs
andwherePermissionIs
methods. - Laratrust is now using semver.
Support for Laravel 7.0
5.2.8 Merge branch 'master' into 5.2
5.2.7
Add
- Rollback teams' foreign keys and table in migrations
5.2.6
5.2.5
Support for Laravel 6.0
5.2.3 Merge branch 'master' into 5.2
5.2.2: Merge pull request #349 from dragonfire1119/master
Fix
- Ability returning false when using teams and validate all. #348
5.2.1: Merge pull request #343 from lexxyungcarter/master
5.1.0
- Add two types of permissions/roles checkers, the default one we have always used and another one directly doing queries to the DB.
- Add possibility to flash data to the session if the middleware fails.
- Add orWherePermissionIs method.
- Added cache to configuration file.