Skip to content

2.0.0

Compare
Choose a tag to compare
@antonkomarev antonkomarev released this 17 Dec 19:26
· 68 commits to master since this release

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