sweet1s / voyager-co-admin
Voyager Co Admin
Requires
- tcg/voyager: ^1.5.0
Requires (Dev)
- laravel/framework: ^8.0|~9.0
This package is auto-updated.
Last update: 2023-12-13 15:40:10 UTC
README
Description
The "voyager-co-admin" package is designed specifically for the Laravel Voyager Admin Panel 1.6. It enhances the functionality by displaying the permissions granted by the superuser (root or admin) in the Voyager Admin Panel. With this package, if certain roles are given the permissions to create and assign roles, they will be able to grant the same permissions to other roles that they themselves possess.
By utilizing "voyager-co-admin", administrators can have granular control over role management within the Voyager Admin Panel. The package enables a hierarchical role structure where designated roles with the appropriate permissions can create and assign roles to other users, ensuring the seamless delegation of access privileges.
Installation
Requirement
Voyager: v1.5+
You should fully install the package Voyager before.
- Require the Package:
composer require sweet1s/voyager-co-admin
- Run The Installer:
php artisan co-admin:install
Features
- Display the permissions granted by the superuser (root or admin) in the Voyager Admin Panel.
- Enable a hierarchical role structure where designated roles with the appropriate permissions can create and assign roles to other users.
- Hide roles that should not be visible to other users when editing users.
- Ensure the seamless delegation of access privileges.
- Manage who can give out certain roles and who can't
Before
In the regular usage of Voyager Admin Panel, when creating a role with limited capabilities, the role will still be able to see all existing permissions.
Admin Role view Moderator role view
After
With the "voyager-co-admin" package, the role will only be able to see the permissions that they themselves possess.