Skip to content

Releases: spatie/laravel-permission

4.4.1

01 Sep 17:41
3c9d7ae
Compare
Choose a tag to compare
  • Avoid Roles over-hydration #1834

5.1.0

31 Aug 20:23
c2dee58
Compare
Choose a tag to compare
  • No longer flushes cache when changing role/permission assignments to users because user cache is in-memory. #1832
    (It now only flushes when changing permissions-assigned-to-roles, or roles-assigned-to-permissions.)
    NOTE: You should test your app to be sure that you don't accidentally have deep dependencies on cache resets happening automatically in these cases.
    ALSO NOTE: If you have added custom code which depended on these flush operations, you may need to add your own cache-reset calls.

5.0.0

31 Aug 18:14
579cc11
Compare
Choose a tag to compare
  • Change default-guard-lookup to prefer current user's guard
    This has been requested for a long time, but has potential breaking-changes. See BC note in #1817

  • Added Teams/Groups feature (see docs, or PR #1804)

  • Customized pivots instead of role_id,permission_id #1823

4.4.0

28 Aug 23:25
7257756
Compare
Choose a tag to compare
  • Avoid BC break (removed interface change) on cache change added in 4.3.0 #1826
  • Made cache even smaller #1826
  • Avoid re-sync on non-persisted objects when firing Eloquent::saved #1819

4.3.0

17 Aug 18:38
78eaa5e
Compare
Choose a tag to compare
  • Speed up permissions cache lookups, and make cache smaller #1799

4.2.0

04 Jun 23:47
a6e4122
Compare
Choose a tag to compare

Add hasExactRoles method #1696

4.1.0

02 Jun 00:41
4a89dd3
Compare
Choose a tag to compare
  • Refactor to resolve guard only once during middleware
  • Refactor service provider by extracting some methods

4.0.1

22 Mar 18:40
29c0532
Compare
Choose a tag to compare

No core changes.
Simply added comments to migration file to explain how to avoid "Specified key is too long ... must not be more than 1000 bytes" errors on MySQL.

4.0.0 (Requires Laravel 6.0+ and PHP 7.2.5+)

27 Jan 23:04
7936ea9
Compare
Choose a tag to compare

4.0.0 - 2021-01-27

  • Drop support on Laravel 5.8 #1615
  • Fix bug when adding roles to a model that doesn't yet exist #1663
  • Enforce unique constraints on database level #1261
  • Changed PermissionRegistrar::initializeCache() public to allow reinitializing cache in custom situations. #1521
  • Use Eloquent\Collection instead of Support\Collection for consistency, collection merging, etc #1630

This package now requires PHP 7.2.5 and Laravel 6.0 or higher.
If you are on a PHP version below 7.2.5 or a Laravel version below 6.0 you can use an older version of this package.

3.18.0

27 Nov 06:46
Compare
Choose a tag to compare

Allow PHP 8.0