Releases: spatie/laravel-permission
Releases · spatie/laravel-permission
6.10.0
What's Changed
- Fix
GuardDoesNotMatch should accept collection
by @erikn69 in #2748 - Improve performance for hydrated collections by @inserve-paul in #2749
- Only show error if
cache key exists
andforgetCachedPermissions
fails by @erikn69 in #2707 - Remove v5 cache fallback alias by @drbyte in #2754
Docs
- [Docs example] Check for 'all' or 'any' permissions before specific permissions by @ceilidhboy in #2694
- [Docs] Fix typo in uuid.md by @levizoesch in #2705
- [Docs] Upgrade Guide - Add PR links to upgrade guide by @mraheelkhan in #2716
- [Docs] use more modern syntax for nullable return type by @galangaidilakbar in #2719
- [Docs] camelCase variable naming in example by @KamilWojtalak in #2723
- [Docs] Update using-policies.md by @marcleonhard in #2741
- [Docs] Example of pushing custom middleware before SubstituteBindings middleware by @WyattCast44 in #2740
Other
- PHP 8.4 tests by @erikn69 in #2747
- Include
Larastan
indev
by @drbyte in #2755 - Fix comment typo by @machacekmartin in #2753
New Contributors
- @ceilidhboy made their first contribution in #2694
- @levizoesch made their first contribution in #2705
- @galangaidilakbar made their first contribution in #2719
- @KamilWojtalak made their first contribution in #2723
- @marcleonhard made their first contribution in #2741
- @WyattCast44 made their first contribution in #2740
- @inserve-paul made their first contribution in #2749
- @machacekmartin made their first contribution in #2753
Full Changelog: 6.9.0...6.10.0
6.9.0
What's Changed
- Use
->withPivot()
for teamed relationships (allowsgetPivotColumns()
) by @juliangums in #2679 - Update docblock on
$role->hasPermissionTo()
to includeBackedEnum
by @drbyte co-authored by @SanderMuller - [Docs] Clarify that
$guard_name
can be an array by @angelej in #2659 - Fix misc typos in changelog by @szepeviktor in #2686
New Contributors
- @angelej made their first contribution in #2659
- @SanderMuller made their first contribution in #2676
- @szepeviktor made their first contribution in #2686
Full Changelog: 6.8.0...6.9.0
6.8.0
6.7.0
6.6.0
What's Changed
- Roles: Support for casting role names to enums by @gajosadrian in #2616
- Fix permission:show UUID error #2581 by @drbyte in #2582
- Cover WildcardPermission instance verification based on its own guard (Allow hasAllPermissions and hasAnyPermission to run on custom guard for WildcardPermission) by @AlexandreBellas in #2608
- Register Laravel "About" details by @drbyte in #2584
New Contributors
- @gajosadrian made their first contribution in #2616
- @AlexandreBellas made their first contribution in #2608
Full Changelog: 6.5.0...6.6.0
6.5.0
What's Changed
- Octane: Fix wrong event listener by @erikn69 in #2656
- Teams: Add nullable team_id typehint by @Androlax2 in #2607
- Blade: simplify the definition of multiple Blade "if" directives by @alissn in #2628
- DocBlocks: Update HasPermissions::collectPermissions() docblock by @Plytas in #2641
Internals
- Update role-permissions.md by @killjin in #2631
- Bump ramsey/composer-install from 2 to 3 by @dependabot in #2630
- Bump dependabot/fetch-metadata from 1 to 2 by @dependabot in #2642
New Contributors
- @alissn made their first contribution in #2628
- @Androlax2 made their first contribution in #2607
- @Plytas made their first contribution in #2641
- @killjin made their first contribution in #2631
Full Changelog: 6.4.0...6.5.0
6.4.0
- Laravel 11 Support
What's Changed
- Add Laravel 11 to workflow run tests by @mraheelkhan in #2605
- And Passport 12
Internals
- Update to use Larastan Org by @arnebr in #2585
- laravel-pint-action to major version tag by @erikn69 in #2586
New Contributors
- @arnebr made their first contribution in #2585
- @mraheelkhan made their first contribution in #2605
Full Changelog: 6.3.0...6.4.0
6.3.0
6.2.0
6.1.0
What's Changed
- Reset teamId on octane by @erikn69 in #2547
NOTE: The\Spatie\Permission\Listeners\OctaneReloadPermissions
listener introduced in 6.0.0 is removed in 6.1.0, because the logic is directly incorporated into the ServiceProvider now.
Thanks @jameshulse for the heads-up and code-review.
Full Changelog: 6.0.1...6.1.0