Releases: cybercog/laravel-eloquent-flag
Releases · cybercog/laravel-eloquent-flag
3.6.0
Adds Expired timestamp inverse flag.
Added
ExpiredAtScope
global scope.HasExpiredAt
trait.HasExpiredAtHelpers
trait with helper methods.HasExpiredAtScope
trait with scope loader.
Changed
HasExpiredFlagHelpers
has methods now.
3.5.0
Adds Approved timestamp classic flag.
Added
ApprovedAtScope
global scope.HasApprovedAt
trait.HasApprovedAtHelpers
trait with helper methods.HasApprovedAtScope
trait with scope loader.
Changed
HasApprovedFlagHelpers
has methods now.
3.4.0
Adds Closed timestamp inverse flag.
Added
ClosedAtScope
global scope.HasClosedAt
trait.HasClosedAtHelpers
trait with helper methods.HasClosedAtScope
trait with scope loader.
Changed
HasClosedFlagHelpers
has methods now.
3.3.0
Adds Verified timestamp classic flag.
Added
VerifiedAtScope
global scope.HasVerifiedAt
trait.HasVerifiedAtHelpers
trait with helper methods.HasVerifiedAtScope
trait with scope loader.
Changed
HasVerifiedFlagHelpers
has methods now.
3.2.0
Adds Accepted timestamp classic flag.
Added
AcceptedAtScope
global scope.HasAcceptedAt
trait.HasAcceptedAtHelpers
trait with helper methods.HasAcceptedAtScope
trait with scope loader.
3.1.0
Release adds Published timestamp classic flag.
Added
Timestamp
flag types introduced.PublishedAtScope
global scope.HasPublishedAt
trait.HasPublishedAtHelpers
trait with helper methods.HasPublishedAtScope
trait with scope loader.
3.0.0
3.0.0 - 2017-01-07
Added
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.
Changed
- 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.
Closed inverse flag added
- Added
Inverse\HasClosedFlag
trait. - Added
Inverse\ClosedFlagScope
global scope.
Expired inverse flag added
The new logical Inverse
group added. All flags from 1.x
version moved to Classic
logical group.
How to upgrade
- Find all
use Cog\Flag\Traits;
in your controllers. - Replace with
use Cog\Flag\Traits\Classic;
2.0.0 - 2016-01-04
Breaking changes
- 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
.
Added
Inverse Logic
flags group. Hides entities if flag not set.- Added
Inverse\HasExpiredFlag
trait. - Added
Inverse\ExpiredFlagScope
global scope.
Approved flag added
- Added
HasApprovedFlag
trait. - Added
ApprovedFlagScope
global scope.