Releases: cybercog/laravel-ownership
Releases · cybercog/laravel-ownership
3.0.0
Changed
- Default database column used by models with strict ownership was renamed from
owned_by
toowned_by_id
.
2.2.0
2.1.0
Added
isNotOwnedBy($owner)
to check if model not owned by concrete owner.
2.0.0
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()
toresolveDefaultOwner()
. - Renamed flag attribute
$setDefaultOwnerOnCreate
to$withDefaultOwnerOnCreate
.
Fixed
- Set default owner on model creation.
1.0.1
To optimize loading speed service provider made deferred.
1.0.0
First stable release.