Skip to content

Releases: cybercog/laravel-eloquent-flag

3.6.0

14 Jan 12:40
Compare
Choose a tag to compare

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.

View the changes from 3.5.0 to 3.6.0

3.5.0

14 Jan 01:03
Compare
Choose a tag to compare

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.

View the changes from 3.4.0 to 3.5.0

3.4.0

13 Jan 08:22
Compare
Choose a tag to compare

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.

View the changes from 3.3.0 to 3.4.0

3.3.0

12 Jan 20:01
Compare
Choose a tag to compare

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.

View the changes from 3.2.0 to 3.3.0

3.2.0

12 Jan 04:16
Compare
Choose a tag to compare

Adds Accepted timestamp classic flag.

Added

  • AcceptedAtScope global scope.
  • HasAcceptedAt trait.
  • HasAcceptedAtHelpers trait with helper methods.
  • HasAcceptedAtScope trait with scope loader.

View the changes from 3.1.0 to 3.2.0

3.1.0

11 Jan 19:02
Compare
Choose a tag to compare

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.

View the changes from 3.0.0 to 3.1.0

3.0.0

07 Jan 00:19
Compare
Choose a tag to compare

Release description

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.

View the changes from 2.1.0 to 3.0.0

Closed inverse flag added

06 Jan 23:47
Compare
Choose a tag to compare
  • Added Inverse\HasClosedFlag trait.
  • Added Inverse\ClosedFlagScope global scope.

View the changes from 2.0.0 to 2.1.0

Expired inverse flag added

04 Jan 00:30
Compare
Choose a tag to compare

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.

View the changes from 1.5.0 to 2.0.0

Approved flag added

31 Dec 13:15
Compare
Choose a tag to compare
  • Added HasApprovedFlag trait.
  • Added ApprovedFlagScope global scope.

View the changes from 1.4.0 to 1.5.0