|
2 | 2 |
|
3 | 3 | All notable changes to `laravel-permission` will be documented in this file |
4 | 4 |
|
| 5 | +## 5.4.0 - 2021-11-17 |
| 6 | + |
| 7 | +## What's Changed |
| 8 | + |
| 9 | +- Add support for PHP 8.1 by @freekmurze in https://github.com/spatie/laravel-permission/pull/1926 |
| 10 | + |
| 11 | +**Full Changelog**: https://github.com/spatie/laravel-permission/compare/5.3.2...5.4.0 |
| 12 | + |
5 | 13 | ## 5.3.2 - 2021-11-17 |
6 | 14 |
|
7 | 15 | ## What's Changed |
@@ -289,12 +297,13 @@ The following changes are not "breaking", but worth making the updates to your a |
289 | 297 | - app()['cache']->forget('spatie.permission.cache'); |
290 | 298 | + $this->app->make(\Spatie\Permission\PermissionRegistrar::class)->forgetCachedPermissions(); |
291 | 299 |
|
| 300 | + |
292 | 301 | ``` |
293 | 302 | 1. Also this is a good time to point out that now with v2.25.0 and v2.26.0 most permission-cache-reset scenarios may no longer be needed in your app, so it's worth reviewing those cases, as you may gain some app speed improvement by removing unnecessary cache resets. |
294 | 303 |
|
295 | 304 | ## 2.25.0 - 2018-11-07 |
296 | 305 |
|
297 | | -- A model's `roles` and `permissions` relations (respectively) are now automatically reloaded after an Assign/Remove role or Grant/Revoke of permissions. This means there's no longer a need to call `->fresh()` on the model if the only reason is to reload the role/permission relations. (That said, you may want to call it for other reasons.) |
| 306 | +- A model's `roles` and `permissions` relations (respectively) are now automatically reloaded after an Assign/Remove role or Grant/Revoke of permissions. This means there's no longer a need to call `->fresh()` on the model if the only reason is to reload the role/permission relations. (That said, you may want to call it for other reasons.) |
298 | 307 | - Added support for passing id to HasRole() |
299 | 308 |
|
300 | 309 | ## 2.24.0 - 2018-11-06 |
@@ -337,6 +346,7 @@ The following changes are not "breaking", but worth making the updates to your a |
337 | 346 | // user hasRole 'roleB' but not 'roleA' |
338 | 347 | @endrole |
339 | 348 |
|
| 349 | + |
340 | 350 | ``` |
341 | 351 | ## 2.19.1 - 2018-09-14 |
342 | 352 |
|
@@ -468,7 +478,7 @@ BEST NOT TO USE v2.7.7 if you've changed tablenames in the config file. |
468 | 478 |
|
469 | 479 | ## 2.7.2 - 2017-10-18 |
470 | 480 |
|
471 | | -- refactor `PermissionRegistrar` to use `$gate->before()` |
| 481 | +- refactor `PermissionRegistrar` to use `$gate->before()` |
472 | 482 | - removed `log_registration_exception` as it is no longer relevant |
473 | 483 |
|
474 | 484 | ## 2.7.1 - 2017-10-12 |
@@ -587,7 +597,7 @@ BEST NOT TO USE v2.7.7 if you've changed tablenames in the config file. |
587 | 597 |
|
588 | 598 | ## 1.14.0 - 2017-10-18 |
589 | 599 |
|
590 | | -- refactor `PermissionRegistrar` to use `$gate->before()` |
| 600 | +- refactor `PermissionRegistrar` to use `$gate->before()` |
591 | 601 | - removed `log_registration_exception` as it is no longer relevant |
592 | 602 |
|
593 | 603 | ## 1.13.0 - 2017-08-31 |
|
0 commit comments