Skip to content

Releases: spatie/laravel-permission

2.22.1

15 Oct 19:09
Compare
Choose a tag to compare

Fix Lumen issue with Route helper added in 2.22.0

2.22.0

12 Oct 00:42
095fae9
Compare
Choose a tag to compare
  • Added Route::role() and Route::permission() middleware helper functions
  • Added new role_or_permission middleware to allow specifying "or" combinations

2.21.0

29 Sep 04:21
5415d29
Compare
Choose a tag to compare

Support Lumen 5.7 (Reverts changes from 2.17.1)

2.20.0

20 Sep 01:30
e2200bb
Compare
Choose a tag to compare

It will now sync roles/permissions to models that are not persisted, by registering a saved callback.
(It would previously throw an Integrity constraint violation QueryException on the pivot table insertion.)

2.19.2

20 Sep 01:05
7fcba4d
Compare
Choose a tag to compare

Added @elserole Blade directive

Usage:

@role('roleA')
 // user hasRole 'roleA'
@elserole('roleB')
 // user hasRole 'roleB' but not 'roleA'
@endrole

2.19.1

14 Sep 18:27
6ab4126
Compare
Choose a tag to compare
  • Spark-related fix to accommodate Spark's missing guard[providers] config

2.19.0

10 Sep 19:53
cf4f3af
Compare
Choose a tag to compare
  • Add ability to pass in IDs or mixed values to role scope
  • Add @unlessrole/@endunlessrole Blade directives

2.18.0

06 Sep 14:30
0319fef
Compare
Choose a tag to compare

Expanded CLI permission:create-role command to create optionally create-and-link permissions in one command. Also now no longer throws an error if the role already exists.

2.17.1

28 Aug 14:36
Compare
Choose a tag to compare
  • Require laravel/framework instead of illuminate/* starting from ~5.4.0
  • Removed old dependency for illuminate/database@~5.3.0 (Laravel 5.3 is not supported)

2.17.0

24 Aug 13:40
32d1b2a
Compare
Choose a tag to compare

Laravel 5.7 Compatible