6.24.0
What's Changed
- Add BackedEnum Support to RoleOrPermissionMiddleware by @imhayatunnabi in https://github.com/spatie/laravel-permission/pull/2890
- Add Missing roleOrPermission() route macro by @imhayatunnabi in https://github.com/spatie/laravel-permission/pull/2893
- PHP 8.5: Fix deprecated usage of
nullas array key by @jnoordsij in https://github.com/spatie/laravel-permission/pull/2904
Internals/Testing
- Skip prefer-lowest dependency version for Laravel 11 by @drbyte in https://github.com/spatie/laravel-permission/pull/2903
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in https://github.com/spatie/laravel-permission/pull/2901
Full Changelog: https://github.com/spatie/laravel-permission/compare/6.23.0...6.24.0