Before you apply migration, you need to publish them by running the php artisan vendor:publish --provider="Helldar\Roles\ServiceProvider" command.
Note: the change has been introduced since version 2.4.0.
| Old Name | New Name |
|---|---|
| user_roles | user_role |
| role_permissions | role_permission |
Just run the
php artisan migratecommand.
Added the is_root column to the roles table.
Removed columns created_at and updated_at from roles and permissions tables.
The column title is added to the tables of roles and permissions (starting from version 2.4.0).
The configuration file is renamed to roles.php.
Contracts Helldar\Roles\Contracts\Role and Helldar\Roles\Contracts\Permission are deprecated and removed from the package.
| Status Code | Old Name | New Name |
|---|---|---|
500 |
Helldar\Roles\Exceptions\PermissionNotFoundException |
Helldar\Roles\Exceptions\Core\PermissionNotFoundException |
500 |
Helldar\Roles\Exceptions\RoleNotFoundException |
Helldar\Roles\Exceptions\Core\RoleNotFoundException |
500 |
Helldar\Roles\Exceptions\UnknownModelKeyException |
Helldar\Roles\Exceptions\Core\UnknownModelKeyException |
403 |
Helldar\Roles\Exceptions\PermissionAccessIsDeniedException |
Helldar\Roles\Exceptions\Http\PermissionAccessIsDeniedHttpException |
403 |
Helldar\Roles\Exceptions\RoleAccessIsDeniedException |
Helldar\Roles\Exceptions\Http\RoleAccessIsDeniedHttpException |
Remove the root_roles, tables and models blocks from the settings.
Default cache time changed from 5 minutes to 1 hour.
In the HasRoles trait, a method for checking root access for a role hasRootRole has been added.