spatie/laravel-permission
Database-backed roles and permissions for Laravel. Assign roles and permissions to users, sync them to the Gate, and check abilities with Laravel’s built-in can()/authorize features. Includes migrations, caching, teams, and flexible model setup.
Full Changelog: https://github.com/spatie/laravel-permission/compare/7.4.0...7.4.1
Full Changelog: https://github.com/spatie/laravel-permission/compare/7.3.0...7.4.0
Downgraded PHP requirement to 8.3.
Full Changelog: https://github.com/spatie/laravel-permission/compare/7.2.4...7.3.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/7.2.3...7.2.4
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.24.1...6.25.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/7.2.1...7.2.2
Full Changelog: https://github.com/spatie/laravel-permission/compare/7.1.0...7.2.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/7.0.0...7.1.0
The aim for v7 is to modernize the codebase while keeping the upgrade path easy. Modern PHP/Laravel features, Pest tests, but no big architectural changes. A future v8 could then tackle larger changes and streamline the package more fundamentally.
PackageServiceProvider from spatie/laravel-package-toolsEvent suffix (PermissionAttached → PermissionAttachedEvent, etc.)Command suffix (CacheReset → CacheResetCommand, etc.)is_a($this, X::class) → $this instanceof Xget_class($obj) → $obj::classstrpos($x, $y) !== false → str_contains($x, $y)WildcardPermissionuse imports for global classesclearClassPermissions() method__construct from Wildcard contractFull Changelog: https://github.com/spatie/laravel-permission/compare/6.24.1...7.0.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.24.0...6.24.1
null as array key by @jnoordsij in https://github.com/spatie/laravel-permission/pull/2904Full Changelog: https://github.com/spatie/laravel-permission/compare/6.23.0...6.24.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.22.0...6.23.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.21.0...6.22.0
removeRole method by @TobMoeller in https://github.com/spatie/laravel-permission/pull/2859teams-permissions.md by @dualklip in https://github.com/spatie/laravel-permission/pull/2863Full Changelog: https://github.com/spatie/laravel-permission/compare/6.20.0...6.21.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.19.0...6.20.0
collectPermissions that is not being assigned" by @erikn69 in https://github.com/spatie/laravel-permission/pull/2851Full Changelog: https://github.com/spatie/laravel-permission/compare/6.18.0...6.19.0
permission. prefix on wildcard_permission key by @jerrens in https://github.com/spatie/laravel-permission/pull/2835collectPermissions that is not being assigned by @JHWelch in https://github.com/spatie/laravel-permission/pull/2840Full Changelog: https://github.com/spatie/laravel-permission/compare/6.17.0...6.18.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.16.0...6.17.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.15.0...6.16.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.14.0...6.15.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.13.0...6.14.0
loadMissing('permissions') when the relation is needed, and test with Model::preventLazyLoading() by @erikn69 in https://github.com/spatie/laravel-permission/pull/2776Full Changelog: https://github.com/spatie/laravel-permission/compare/6.12.0...6.13.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.11.0...6.12.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.10.1...6.11.0
6.10.0 : "Can no longer delete permissions" by @erikn69 in https://github.com/spatie/laravel-permission/pull/2759Full Changelog: https://github.com/spatie/laravel-permission/compare/6.10.0...6.10.1
GuardDoesNotMatch should accept collection by @erikn69 in https://github.com/spatie/laravel-permission/pull/2748cache key exists and forgetCachedPermissions fails by @erikn69 in https://github.com/spatie/laravel-permission/pull/2707Larastan in dev by @drbyte in https://github.com/spatie/laravel-permission/pull/2755Full Changelog: https://github.com/spatie/laravel-permission/compare/6.9.0...6.10.0
->withPivot() for teamed relationships (allows getPivotColumns()) by @juliangums in https://github.com/spatie/laravel-permission/pull/2679$role->hasPermissionTo() to include BackedEnum by @drbyte co-authored by @SanderMuller$guard_name can be an array by @angelej in https://github.com/spatie/laravel-permission/pull/2659Full Changelog: https://github.com/spatie/laravel-permission/compare/6.8.0...6.9.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.7.0...6.8.0
6.5.0Full Changelog: https://github.com/spatie/laravel-permission/compare/6.6.0...6.7.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.5.0...6.6.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.4.0...6.5.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.3.0...6.4.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.2.0...6.3.0
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.1.0...6.2.0
How can I help you explore Laravel packages today?