sweet1s/voyager-co-admin

This package is abandoned and no longer maintained. No replacement package was suggested.

Voyager Co Admin

1.1.1 2023-06-23 14:18 UTC

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.

  1. Require the Package:
    composer require sweet1s/voyager-co-admin
  2. 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 BeforeAdmin Moderator role view BeforeModerator

After

With the "voyager-co-admin" package, the role will only be able to see the permissions that they themselves possess.

Admin role view BeforeAdmin Moderator role view BeforeModerator