Releases: spatie/laravel-permission
Releases · spatie/laravel-permission
4.2.0
Add hasExactRoles method #1696
4.1.0
- Refactor to resolve guard only once during middleware
- Refactor service provider by extracting some methods
4.0.1
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+)
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.17.0
- Optional
$guard
parameter may be passed to RoleMiddleware
, PermissionMiddleware
, and RoleOrPermissionMiddleware
.
See #1565
Thanks @lloricode
3.15.0
- Change
users
relationship type to BelongsToMany
3.14.0
- Declare table relations earlier to improve guarded/fillable detection accuracy (relates to Aug 2020 Laravel security patch)
3.13.0
- Provides error text explaining that migrations will fail if config is cached. This is because our migrations depend on entries in the config.