Skip to content

v1.6.1

Latest

Choose a tag to compare

@webrek webrek released this 08 Jun 05:26

Fixed

  • Removed the property accessors added in 1.6.0 ($role->permissions, $user->roles, $permission->roles, …). Under mongodb/laravel-mongodb a same-named method is resolved as a relation, so accessing them as properties threw LogicException: … must return a relationship instance. Use the methods instead: $role->permissions(), $user->roles(), $role->users(), $permission->roles().

Added

  • Tests for the inverse relation methods, including Role::users() against both flat and structured role_ids.