Releases: spatie/laravel-permission
Releases · spatie/laravel-permission
2.1.4
- add
model_type
to the primary key of tables that use a polymorphic relationship
2.1.3
- fixed a bug where the role()/permission() relation to user models would be saved incorrectly
- added users() relation on Permission and Role
2.0.2
- check for duplicates when adding new roles and permissions
2.0.1
- fix the order of the
foreignKey
andrelatedKey
in the relations
2.0.0
- cache expiration is now configurable and set to one day by default
- roles and permissions can now be assigned to any model through the
HasRoles
trait - removed deprecated
hasPermission
method - renamed config file from
laravel-permission
topermission
.
1.12.0
- made foreign key name to users table configurable
1.11.1
hasPermissionTo
uses the cache to avoid extra queries when it is called multiple times
1.11.0
- add
getDirectPermissions
,getPermissionsViaRoles
,getAllPermissions
1.10.0
- add hasAnyPermission
1.9.0
- add
log_registration_exception
in settings file - fix for ambiguous column name
id
when using the role scope