All notable changes to cybercog/laravel-ownership
will be documented in this file.
5.6.0 - 2024-03-09
- (#32) Added Laravel 11 support
5.5.0 - 2023-02-24
- (#28) Added Laravel 10 support
5.4.0 - 2023-02-22
- (#25) Added Laravel 9 support
- (#27) Dropped PHP 7.x support
- (#27) Dropped Laravel 5.2 support
- (#27) Dropped Laravel 5.3 support
- (#27) Dropped Laravel 5.4 support
- (#27) Dropped Laravel 5.5 support
- (#27) Dropped Laravel 5.6 support
- (#27) Dropped Laravel 5.7 support
- (#27) Dropped Laravel 5.8 support
- (#27) Dropped Laravel 6 support
- (#27) Dropped Laravel 7 support
- (#27) Dropped Laravel 8 support
5.3.0 - 2020-12-31
- (#22) Added Laravel 6.x support
- (#22) Added Laravel 7.x support
- (#22) Added Laravel 8.x support
- (#23) Added PHP 8.x support
5.2.0 - 2018-09-09
- (#19) Laravel 5.7 support
5.1.0 - 2018-02-08
- Laravel 5.6 support
5.0.0 - 2017-09-13
- Contracts namespace changed from
Cog\Contracts\Laravel\Ownership
toCog\Contracts\Ownership
- Service Provider auto-discovery
4.0.0 - 2017-09-09
- Ownable models got new
isOwnedByDefaultOwner
method which automatically try to resolve current user.
- Contracts namespace changed from
Cog\Ownership\Contracts
toCog\Contracts\Laravel\Ownership
- Classes namespace changed from
Cog\Ownership
toCog\Laravel\Ownership
ModelObserver
renamed toOwnableObserver
HasOwner
contract renamed toOwnable
3.1.0 - 2017-08-30
- Laravel 5.5 support
- Service Provider auto-discovery
3.0.0 - 2017-04-10
- Default database column used by models with strict ownership was renamed from
owned_by
toowned_by_id
.
2.2.0 - 2017-02-07
owner()
alias for methodownedBy
- Laravel 5.4 support
2.1.0 - 2016-12-21
isNotOwnedBy($owner)
to check if model not owned by concrete owner.
2.0.0 - 2016-12-17
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.
- Renamed method
getDefaultOwner()
toresolveDefaultOwner()
. - Renamed flag attribute
$setDefaultOwnerOnCreate
to$withDefaultOwnerOnCreate
.
- Set default owner on model creation.
- Initial release