Skip to content

Releases: spatie/laravel-permission

2.1.4

10 May 17:33
Compare
Choose a tag to compare
  • add model_type to the primary key of tables that use a polymorphic relationship

2.1.3

21 Apr 06:10
Compare
Choose a tag to compare
  • 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

13 Apr 15:00
Compare
Choose a tag to compare
  • check for duplicates when adding new roles and permissions

2.0.1

11 Apr 10:30
Compare
Choose a tag to compare
  • fix the order of the foreignKey and relatedKey in the relations

2.0.0

10 Apr 14:36
Compare
Choose a tag to compare
  • 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 to permission.

1.12.0

14 Mar 19:14
Compare
Choose a tag to compare
  • made foreign key name to users table configurable

1.11.1

12 Mar 07:57
Compare
Choose a tag to compare
  • hasPermissionTo uses the cache to avoid extra queries when it is called multiple times

1.11.0

22 Feb 16:49
Compare
Choose a tag to compare
  • add getDirectPermissions, getPermissionsViaRoles, getAllPermissions

1.10.0

21 Feb 23:27
Compare
Choose a tag to compare
  • add hasAnyPermission

1.9.0

20 Feb 19:02
Compare
Choose a tag to compare
  • add log_registration_exception in settings file
  • fix for ambiguous column name id when using the role scope