Releases: spatie/laravel-permission
Releases · spatie/laravel-permission
2.22.1
Fix Lumen issue with Route helper added in 2.22.0
2.22.0
- Added
Route::role()
and Route::permission()
middleware helper functions
- Added new
role_or_permission
middleware to allow specifying "or" combinations
2.21.0
Support Lumen 5.7 (Reverts changes from 2.17.1
)
2.20.0
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
Added @elserole
Blade directive
Usage:
@role('roleA')
// user hasRole 'roleA'
@elserole('roleB')
// user hasRole 'roleB' but not 'roleA'
@endrole
2.19.1
- Spark-related fix to accommodate Spark's missing
guard[providers]
config
2.19.0
- Add ability to pass in IDs or mixed values to
role
scope
- Add
@unlessrole
/@endunlessrole
Blade directives
2.18.0
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
- 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)