Skip to content

Releases: cybercog/laravel-ownership

3.0.0

10 Apr 20:59
Compare
Choose a tag to compare

Changed

  • Default database column used by models with strict ownership was renamed from owned_by to owned_by_id.

View the changes from 2.2.0 to 3.0.0

2.2.0

07 Feb 14:57
Compare
Choose a tag to compare

Added

  • owner() alias for method ownedBy()
  • Laravel 5.4 support

View the changes from 2.1.0 to 2.2.0

2.1.0

21 Dec 05:39
Compare
Choose a tag to compare

Added

  • isNotOwnedBy($owner) to check if model not owned by concrete owner.

View the changes from 2.0.0 to 2.1.0

2.0.0

17 Dec 19:26
Compare
Choose a tag to compare

Added

  • withDefaultOwner() set default owner value on create.
  • withDefaultOwner($owner) overwrite default owner value on create with concrete owner.
  • withoutDefaultOwner() don't set default owner on model create.
  • scopeWhereNotOwnedBy($owner) scope results to exclude unowned records by owner.

Changed

  • Renamed method getDefaultOwner() to resolveDefaultOwner().
  • Renamed flag attribute $setDefaultOwnerOnCreate to $withDefaultOwnerOnCreate.

Fixed

  • Set default owner on model creation.

View the changes from 1.0.1 to 2.0.0

1.0.1

17 Dec 02:16
Compare
Choose a tag to compare

1.0.0

17 Dec 01:29
Compare
Choose a tag to compare

First stable release.