Upgrading spatie/laravel-permission 0.0 to 1
Unknown0.0.1 → 1.18.0
Fetching 33 releases from GitHub…0 / 33
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
PHP requirement changed in 1.5.0: >=5.5.0 → >=5.6.0.
Moves illuminate/contracts ^5.1 → ~5.1.0|~5.2.0|~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0, laravel/framework ^5.1.11 → ~5.1.11|~5.2.0|~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0. Your build may pick other versions.
API changes
Generated by DepDelta from published PHP source. Not mixed with prose notes.
- removed:
method HasRoles.assignRole($role) - removed:
method HasRoles.hasPermission($permission) - removed:
method HasRoles.hasRole($role) - removed:
method HasRoles.roles() - removed:
method RefreshesPermissionCache.forgetCachedPermissions() - removed:
static method RefreshesPermissionCache.bootRefreshesPermissionCache() - removed:
trait HasRoles - removed:
trait RefreshesPermissionCache - changed:
protected method PermissionRegistrar.getPermissions() → method PermissionRegistrar.getPermissions() - added:
protected method PermissionServiceProvider.registerBladeExtensions() - added:
protected method PermissionServiceProvider.registerModelBindings() - added:
protected property PermissionRegistrar.cache - added:
protected property PermissionRegistrar.cacheKey
- added:
interface Permission - added:
interface Role - added:
method Permission.roles() - added:
method Permission.users() - added:
method Role.hasPermissionTo($permission) - added:
method Role.permissions() - added:
method Role.users() - added:
static method Permission.findByName($name) - added:
static method Role.findByName($name)
- added:
class PermissionDoesNotExist extends Exception - added:
class PermissionMustNotBeEmpty extends DomainException - added:
class RoleDoesNotExist extends Exception
- removed:
method Role.givePermissionTo($permission) - changed:
class Permission extends Model → class Permission extends Model implements PermissionContract - changed:
class Role extends Model → class Role extends Model implements RoleContract - added:
constructor Permission(array $attributes = …) - added:
constructor Role(array $attributes = …) - added:
method Permission.users() - added:
method Role.hasPermissionTo($permission) - added:
method Role.users() - added:
property Permission.guarded - added:
property Role.guarded - added:
static method Permission.findByName($name) - added:
static method Role.findByName($name)
- added:
method HasPermissions.givePermissionTo(...$permissions) - added:
method HasPermissions.revokePermissionTo($permission) - added:
method HasPermissions.syncPermissions(...$permissions) - added:
method HasRoles.assignRole(...$roles) - added:
method HasRoles.getAllPermissions() - added:
method HasRoles.getDirectPermissions() - added:
method HasRoles.getPermissionsViaRoles() - added:
method HasRoles.hasAllRoles($roles) - added:
method HasRoles.hasAnyPermission(...$permissions) - added:
method HasRoles.hasAnyRole($roles) - added:
method HasRoles.hasDirectPermission($permission) - added:
method HasRoles.hasPermission($permission) - added:
method HasRoles.hasPermissionTo($permission) - added:
method HasRoles.hasRole($roles) - added:
method HasRoles.permissions() - added:
method HasRoles.removeRole($role) - added:
method HasRoles.roles() - added:
method HasRoles.scopeRole($query, $roles) - added:
method HasRoles.syncRoles(...$roles) - added:
method RefreshesPermissionCache.forgetCachedPermissions() - added:
protected method HasPermissions.getStoredPermission($permissions) - added:
protected method HasRoles.getStoredRole($role) - added:
protected method HasRoles.hasPermissionViaRole(Permission $permission) - added:
protected static method RefreshesPermissionCache.getPermissions() - added:
static method RefreshesPermissionCache.bootRefreshesPermissionCache() - added:
trait HasPermissions - added:
trait HasRoles - added:
trait RefreshesPermissionCache