cancerbero
Cancerbero is a Laravel package to manage access control based on routes and a permissions database table., (*1)
| 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
- Update
composer.json to the new versions
"csgt/cancerbero": "^7.0",
"csgt/menu": "^7.0",
"csgt/ui": "^3.0",
"csgt/utils": "^8.0",
- Publish and run migrations
php artisan vendor:publish --tag=migrations
php artisan migrate
-
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), (*4)