메소드 |
설명 |
|
__construct ( RolePermission $permission, Role $role, PermissionService $permissionService ) |
PermissionsRepo constructor. |
|
assignRolePermissions ( Role $role, array $permissionNameArray = [] ) |
Assign an list of permission names to an role. |
|
deleteRole ( $roleId, $migrateRoleId ) |
Delete a role from the system. |
|
getAllRoles ( ) : Illuminate\Database\Eloquent\Collection | static[] |
Get all the user roles from the system. |
|
getAllRolesExcept ( Role $role ) : mixed |
Get all the roles except for the provided one. |
|
getRoleById ( $id ) : mixed |
Get a role via its ID. |
|
saveNewRole ( array $roleData ) : Role |
Save a new role into the system. |
|
updateRole ( $roleId, $roleData ) |
Updates an existing role. |
|