Skip to content

Commit 08cc9bd

Browse files
freekmurzeactions-user
authored andcommitted
Update CHANGELOG
1 parent e54f376 commit 08cc9bd

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to `laravel-permission` will be documented in this file
44

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+
513
## 5.3.2 - 2021-11-17
614

715
## What's Changed
@@ -289,12 +297,13 @@ The following changes are not "breaking", but worth making the updates to your a
289297
- app()['cache']->forget('spatie.permission.cache');
290298
+ $this->app->make(\Spatie\Permission\PermissionRegistrar::class)->forgetCachedPermissions();
291299

300+
292301
```
293302
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.
294303

295304
## 2.25.0 - 2018-11-07
296305

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.)
298307
- Added support for passing id to HasRole()
299308

300309
## 2.24.0 - 2018-11-06
@@ -337,6 +346,7 @@ The following changes are not "breaking", but worth making the updates to your a
337346
// user hasRole 'roleB' but not 'roleA'
338347
@endrole
339348

349+
340350
```
341351
## 2.19.1 - 2018-09-14
342352

@@ -468,7 +478,7 @@ BEST NOT TO USE v2.7.7 if you've changed tablenames in the config file.
468478

469479
## 2.7.2 - 2017-10-18
470480

471-
- refactor `PermissionRegistrar` to use `$gate->before()`
481+
- refactor `PermissionRegistrar` to use `$gate->before()`
472482
- removed `log_registration_exception` as it is no longer relevant
473483

474484
## 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.
587597

588598
## 1.14.0 - 2017-10-18
589599

590-
- refactor `PermissionRegistrar` to use `$gate->before()`
600+
- refactor `PermissionRegistrar` to use `$gate->before()`
591601
- removed `log_registration_exception` as it is no longer relevant
592602

593603
## 1.13.0 - 2017-08-31

0 commit comments

Comments
 (0)