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.
Full Changelog: https://github.com/santigarcor/laratrust/compare/8.5.4...8.5.5
Full Changelog: https://github.com/santigarcor/laratrust/compare/8.5.3...8.5.4
Full Changelog: https://github.com/santigarcor/laratrust/compare/8.5.2...8.5.3
Full Changelog: https://github.com/santigarcor/laratrust/compare/8.5.1...8.5.2
Full Changelog: https://github.com/santigarcor/laratrust/compare/8.5.0...8.5.1
doesntHavePermission and isNotAbleTo methods by @gdebrauwer in https://github.com/santigarcor/laratrust/pull/696Full Changelog: https://github.com/santigarcor/laratrust/compare/8.4.1...8.5.0
Full Changelog: https://github.com/santigarcor/laratrust/compare/8.4.0...8.4.1
Full Changelog: https://github.com/santigarcor/laratrust/compare/8.3.1...8.4.0
Full Changelog: https://github.com/santigarcor/laratrust/compare/8.3.0...8.3.2
Fix Str::contains deprecation
Fix blade directive
permissionsTeams relationship and allTeams methodallPermissions methodallPermissions method. (4321da77393bdbc21a7cf791578da3c243921c38)::class syntax in the config file by default.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' => [],
],
can method so we now support gates and policies out of the boxwithoutRole and withoutPermission scopeswhereRoleIs and wherePermissionIs methods.How can I help you explore Laravel packages today?