All notable changes to cybercog/laravel-eloquent-flag
will be documented in this file.
6.1.0 - 2024-03-09
- (#81) Added Laravel 11 support
6.0.0 - 2023-02-24
- (#77) Added Laravel 10 support
- (#77) Timestamp flagged attributes using Eloquent Model
$casts
property
- (#77) Dropped Laravel 5.8 support
- (#77) Dropped Laravel 6 support
- (#77) Dropped Laravel 7 support
- (#77) Dropped Laravel 8 support
5.4.0 - 2022-04-13
- (#74) Added PHP 9.x support
5.3.0 - 2020-12-24
- (#71) Added PHP 8.x support
5.2.0 - 2020-09-09
- (#69) Add Laravel 8 support
5.1.2 - 2020-03-06
- (#65) Add Laravel 7 support
5.1.1 - 2020-02-20
- (#62) Fixed
undoActivate
method inHasActiveFlagHelpers
trait
5.1.0 - 2019-09-04
- (#59) Laravel 6 support
5.0.0 - 2019-03-18
- Laravel 5.8 support
- (#48) Flag fields auto-casting
- Added
shouldApplyAcceptedAtScope
&shouldApplyAcceptedFlagScope
methods to control Accepted flags global scope auto apply. - Added
shouldApplyActiveFlagScope
methods to control Active flag global scope auto apply. - Added
shouldApplyApprovedAtScope
&shouldApplyApprovedFlagScope
methods to control Approved flags global scope auto apply. - Added
shouldApplyClosedAtScope
&shouldApplyClosedFlagScope
methods to control Closed flags global scope auto apply.
- All methods are strict typed now
Carbon\Carbon
replaced withIlluminate\Support\Facades\Date
isRejected
instance method renamed toisNotAccepted
isDeactivated
instance method renamed toisNotActivated
isDisapproved
instance method renamed toisNotApproved
isUninvited
instance method renamed toisNotInvited
isUnkept
instance method renamed toisNotKept
isUnpublished
instance method renamed toisNotPublished
isUnverified
instance method renamed toisNotVerified
isUnarchived
instance method renamed toisNotArchived
isOpened
instance method renamed toisNotClosed
isUndrafted
instance method renamed toisNotDrafted
isUnended
instance method renamed toisNotEnded
isUnexpired
instance method renamed toisNotExpired
reject
instance method renamed toundoAccept
deactivate
instance method renamed toundoActivate
disapprove
instance method renamed toundoApprove
uninvite
instance method renamed toundoInvite
unkeep
instance method renamed toundoKeep
unpublish
instance method renamed toundoPublish
unverify
instance method renamed toundoVerify
unarchive
instance method renamed toundoArchive
open
instance method renamed toundoClose
undraft
instance method renamed toundoDraft
unend
instance method renamed toundoEnd
unexpire
instance method renamed toundoExpire
reject
global scope method renamed toundoAccept
withRejected
global scope method renamed towithNotAccepted
withoutRejected
global scope method renamed towithoutNotAccepted
onlyRejected
global scope method renamed toonlyNotAccepted
deactivate
global scope method renamed toundoActivate
withDeactivated
global scope method renamed towithNotActivated
withoutDeactivated
global scope method renamed towithoutNotActivated
onlyDeactivated
global scope method renamed toonlyNotActivated
disapprove
global scope method renamed toundoApprove
withDisapproved
global scope method renamed towithNotApproved
withoutDisapproved
global scope method renamed towithoutNotApproved
onlyDisapproved
global scope method renamed toonlyNotApproved
uninvite
global scope method renamed toundoInvite
withUninvited
global scope method renamed towithNotInvited
withoutUninvited
global scope method renamed towithoutNotInvited
onlyUninvited
global scope method renamed toonlyNotInvited
unkeep
global scope method renamed toundoKeep
withUnkept
global scope method renamed towithNotKept
withoutUnkept
global scope method renamed towithoutNotKept
onlyUnkept
global scope method renamed toonlyNotKept
unpublish
global scope method renamed toundoPublish
withUnpublished
global scope method renamed towithNotPublished
withoutUnpublished
global scope method renamed towithoutNotPublished
onlyUnpublished
global scope method renamed toonlyNotPublished
unverify
global scope method renamed toundoVerify
withUnverified
global scope method renamed towithNotVerified
withoutUnverified
global scope method renamed towithoutNotVerified
onlyUnverified
global scope method renamed toonlyNotVerified
unarchive
global scope method renamed toundoArchive
open
global scope method renamed toundoClose
undraft
global scope method renamed toundoDraft
unend
global scope method renamed toundoEnd
unexpire
global scope method renamed toundoExpire
rejected
model event renamed toacceptedUndone
deactivated
model event renamed toactivatedUndone
disapproved
model event renamed toapprovedUndone
uninvited
model event renamed toinvitedUndone
unkept
model event renamed tokeptUndone
unpublished
model event renamed topublishedUndone
unverified
model event renamed toverifiedUndone
unarchived
model event renamed toarchivedUndone
opened
model event renamed toclosedUndone
undrafted
model event renamed todraftedUndone
unended
model event renamed toendedUndone
unexpired
model event renamed toexpiredUndone
- Dropped PHP 5.6, 7.0 support
- Dropped Laravel 5.2, 5.3, 5.4, 5.5, 5.6, 5.7 support
- (#50) Removed attribute mutator
set*
&unset*
methods from all helper classes - (#56) Removed global scopes auto-apply
4.0.0 - 2018-09-09
3.13.0 - 2018-02-08
- Laravel 5.6 support (#35).
is_invited
classic boolean flag added (#31).invited_at
classic timestamp flag added (#31).is_ended
inverse boolean flag added (#31).ended_at
inverse timestamp flag added (#31).is_drafted
inverse boolean flag added (#32).drafted_at
inverse timestamp flag added (#32).is_archived
inverse boolean flag added (#32).archived_at
inverse timestamp flag added (#32).
3.12.0 - 2017-09-09
- Laravel 5.5 support.
3.11.0 - 2017-02-20
- Laravel 5.4 support.
3.10.0 - 2017-02-13
shouldApplyVerifiedAtScope
&shouldApplyVerifiedFlagScope
methods to skip Verified flags global scope auto apply.
3.9.0 - 2017-02-03
shouldApplyExpiredAtScope
&shouldApplyExpiredFlagScope
methods to skip Expired flags global scope auto apply.
3.8.0 - 2017-01-29
shouldApplyPublishedAtScope
&shouldApplyPublishedFlagScope
methods to skip Published flags global scope auto apply.
3.7.0 - 2017-01-14
setKeptOnUpdate
property inHasKeptFlagBehavior
to control events.
HasAcceptedAtHelpers
methods implemented.HasAcceptedFlagHelpers
methods implemented.HasActiveFlagHelpers
methods implemented.HasKeptFlagHelpers
methods implemented.HasPublishedAtHelpers
methods implemented.HasPublishedFlagHelpers
methods implemented.
3.6.0 - 2017-01-14
expired_at
inverse timestamp flag added.
is_expired
inverse boolean flag helpers implemented.
3.5.0 - 2017-01-13
approved_at
classic timestamp flag added.
is_approved
classic boolean flag helpers implemented.
3.4.0 - 2017-01-13
closed_at
inverse timestamp flag added.
is_closed
inverse boolean flag helpers added.
3.3.0 - 2017-01-12
verified_at
classic timestamp flag added.is_verified
classic boolean flag helpers added.
3.2.0 - 2017-01-12
accepted_at
classic timestamp flag added.
3.1.0 - 2017-01-11
Timestamp
flag types introduced.published_at
classic timestamp flag added.
3.0.0 - 2017-01-07
Has{Name}FlagScope
traits which include global scopes.Has{Name}FlagHelpers
traits which include flag related helper methods.Has{Name}FlagBehavior
traits which include flag specific behavior.
- Each Flag trait was spliced on 2 additional traits:
Has{Name}Flag
=Has{Name}FlagScope
+Has{Name}FlagHelpers
. - Kept Flag trait was spliced on 3 additional traits, because events were pulled out to
HasKeptFlagBehavior
trait. - Flags
Classic\Accepted
,Classic\Active
&Classic\Approved
methods were changed. Details in the Upgrade Guide.
2.1.0 - 2017-01-04
is_closed
inverse boolean flag added.
2.0.0 - 2017-01-04
- Namespaces of flag's traits received
Classic
at the end:Cog\Flag\Traits\Classic
. - Namespaces of flag's scopes received
Classic
at the end:Cog\Flag\Scopes\Classic
.
Inverse Logic
flags group. Hides entities if flag not set.is_expired
inverse boolean flag added.
1.5.0 - 2016-12-31
is_approved
boolean flag added.
1.4.0 - 2016-12-26
is_verified
boolean flag added.
1.3.0 - 2016-12-14
is_accepted
boolean flag added.
1.2.0 - 2016-12-10
is_kept
boolean flag added.
1.1.0 - 2016-09-25
is_published
boolean flag added.
is_active
boolean flag added.