csgt/cancerbero

There is no license information available for the latest version (v8.0.2) of this package.

Cancerbero

v8.0.2 2025-02-16 15:11 UTC

README

Cancerbero is a Laravel package to manage access control based on routes and a permissions database table.

Package Version Laravel version Field language Tree structure Model Path
4.x 4 spanish ids Models/Auth
5.x >5 spanish ids Models/Auth
5.7 >5 english ids Models/Auth
6.x >6 english ids Models/Auth
7.x >6 english names Models/Auth
8.x >6 english names Models

Upgrade guides

6.x -> 7.x

  1. Update composer.json to the new versions
"csgt/cancerbero": "^7.0",
"csgt/menu": "^7.0",
"csgt/ui": "^3.0",
"csgt/utils": "^8.0",
  1. Publish and run migrations
php artisan vendor:publish --tag=migrations
php artisan migrate
  1. Modify PermissionSeeder, ModulePermissionsSeeder, MenuSeeder, GodSeeder, InitialSeeder seeders for new schema. You may copy them from \packages\ui\src\Auth\stubs\seeders\

  2. Update \database\seeds\CsgtModule.php for new schema. You may copy it from \packages\cancerbero\src\

  3. Remove menu middleware from routes (if they exist)