Skip to content

Releases: spatie/laravel-permission

3.5.0

07 Jan 16:34
e9c0824
Compare
Choose a tag to compare

Added missing guardName to Exception PermissionDoesNotExist #1316

3.4.1

28 Dec 13:31
fe0573d
Compare
Choose a tag to compare

Fix problem in Lumen caused by 3.4.0

3.4.0

27 Dec 19:05
fa18db5
Compare
Choose a tag to compare
  • Make compatible with Swoole - ie: for long-running Laravel instances

3.3.1

24 Dec 18:49
647c514
Compare
Choose a tag to compare
  • Expose Artisan commands to app layer, not just to console

3.3.0

22 Nov 05:27
3dbab1c
Compare
Choose a tag to compare
  • Removed duplicate and unreachable code
  • Removed checks for older Laravel versions

3.2.0

16 Oct 19:26
e382155
Compare
Choose a tag to compare

Implementation of optional guard check for hasRoles and hasAllRoles - See #1236

3.1.0

16 Oct 19:25
f3652b5
Compare
Choose a tag to compare

Use bigIncrements/bigInteger in migration See #1224

3.0.0

02 Sep 15:05
Compare
Choose a tag to compare

Added Laravel 6.0 support.

Requirements:

Now requires Laravel 5.8 and newer, and PHP 7.2 and newer. (Drops L5.7 and older)

Older Laravel versions can use prior versions of this package:
v2: L5.4-5.8 (PHP 7.0-7.3)
v1: L5.1-5.8 (PHP 5.6-7.3)

Upgrading

Upgrading from v2

Upgrading from v2 to v3 is simple: just update ^2.xxx to ^3.0 in your composer.json and run composer update
There are no migration-related changes for moving from v2 to v3.

Upgrading from v1

The upgrade from v1 is complex because the db schema was changed significantly. See the documentation for a gist which may help with migrating database data. An upgrade from v1 should be planned with care and plenty of time allocated to it.

2.38.0

02 Sep 17:12
674ad54
Compare
Choose a tag to compare
  • Allow support for multiple role/permission models
  • Load roles relationship only when missing
  • Wrap helpers in function_exists() check

2.37.0

09 Apr 12:45
Compare
Choose a tag to compare
  • Added permission:show CLI command to display a table of roles/permissions
  • removeRole now returns the model, consistent with other methods
  • model $guarded properties updated to protected
  • README updates