Skip to content

Releases: spatie/laravel-permission

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

3.17.0

16 Sep 16:48
35d40a4
Compare
Choose a tag to compare
  • Optional $guard parameter may be passed to RoleMiddleware, PermissionMiddleware, and RoleOrPermissionMiddleware.
    See #1565
    Thanks @lloricode

3.16.0

18 Aug 17:14
c5082ee
Compare
Choose a tag to compare
  • Added Laravel 8 support

3.15.0

15 Aug 20:32
72f9d2d
Compare
Choose a tag to compare
  • Change users relationship type to BelongsToMany

3.14.0

15 Aug 20:29
5c1cc46
Compare
Choose a tag to compare
  • Declare table relations earlier to improve guarded/fillable detection accuracy (relates to Aug 2020 Laravel security patch)