Laravel Eloquent Flag Versions Save

Laravel Eloquent boolean & timestamp flagged attributes behavior.

5.0.0

5 years ago

Added

  • 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.

Changed

  • All methods are strict typed now
  • Carbon\Carbon replaced with Illuminate\Support\Facades\Date
  • isRejected instance method renamed to isNotAccepted
  • isDeactivated instance method renamed to isNotActivated
  • isDisapproved instance method renamed to isNotApproved
  • isUninvited instance method renamed to isNotInvited
  • isUnkept instance method renamed to isNotKept
  • isUnpublished instance method renamed to isNotPublished
  • isUnverified instance method renamed to isNotVerified
  • isUnarchived instance method renamed to isNotArchived
  • isOpened instance method renamed to isNotClosed
  • isUndrafted instance method renamed to isNotDrafted
  • isUnended instance method renamed to isNotEnded
  • isUnexpired instance method renamed to isNotExpired
  • reject instance method renamed to undoAccept
  • deactivate instance method renamed to undoActivate
  • disapprove instance method renamed to undoApprove
  • uninvite instance method renamed to undoInvite
  • unkeep instance method renamed to undoKeep
  • unpublish instance method renamed to undoPublish
  • unverify instance method renamed to undoVerify
  • unarchive instance method renamed to undoArchive
  • open instance method renamed to undoClose
  • undraft instance method renamed to undoDraft
  • unend instance method renamed to undoEnd
  • unexpire instance method renamed to undoExpire
  • reject global scope method renamed to undoAccept
  • withRejected global scope method renamed to withNotAccepted
  • withoutRejected global scope method renamed to withoutNotAccepted
  • onlyRejected global scope method renamed to onlyNotAccepted
  • deactivate global scope method renamed to undoActivate
  • withDeactivated global scope method renamed to withNotActivated
  • withoutDeactivated global scope method renamed to withoutNotActivated
  • onlyDeactivated global scope method renamed to onlyNotActivated
  • disapprove global scope method renamed to undoApprove
  • withDisapproved global scope method renamed to withNotApproved
  • withoutDisapproved global scope method renamed to withoutNotApproved
  • onlyDisapproved global scope method renamed to onlyNotApproved
  • uninvite global scope method renamed to undoInvite
  • withUninvited global scope method renamed to withNotInvited
  • withoutUninvited global scope method renamed to withoutNotInvited
  • onlyUninvited global scope method renamed to onlyNotInvited
  • unkeep global scope method renamed to undoKeep
  • withUnkept global scope method renamed to withNotKept
  • withoutUnkept global scope method renamed to withoutNotKept
  • onlyUnkept global scope method renamed to onlyNotKept
  • unpublish global scope method renamed to undoPublish
  • withUnpublished global scope method renamed to withNotPublished
  • withoutUnpublished global scope method renamed to withoutNotPublished
  • onlyUnpublished global scope method renamed to onlyNotPublished
  • unverify global scope method renamed to undoVerify
  • withUnverified global scope method renamed to withNotVerified
  • withoutUnverified global scope method renamed to withoutNotVerified
  • onlyUnverified global scope method renamed to onlyNotVerified
  • unarchive global scope method renamed to undoArchive
  • open global scope method renamed to undoClose
  • undraft global scope method renamed to undoDraft
  • unend global scope method renamed to undoEnd
  • unexpire global scope method renamed to undoExpire
  • rejected model event renamed to acceptedUndone
  • deactivated model event renamed to activatedUndone
  • disapproved model event renamed to approvedUndone
  • uninvited model event renamed to invitedUndone
  • unkept model event renamed to keptUndone
  • unpublished model event renamed to publishedUndone
  • unverified model event renamed to verifiedUndone
  • unarchived model event renamed to archivedUndone
  • opened model event renamed to closedUndone
  • undrafted model event renamed to draftedUndone
  • unended model event renamed to endedUndone
  • unexpired model event renamed to expiredUndone

Removed

  • 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

View the changes from 4.0.0 to 5.0.0

4.0.0

5 years ago

Added

  • (#42) Laravel 5.7 support
  • (#37) Events firing

View the changes from 3.13.1 to 4.0.0

3.13.0

6 years ago

Added

  • 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).

View the changes from 3.12.0 to 3.13.0

3.12.0

6 years ago

Added

  • Laravel 5.5 support.

View the changes from 3.11.0 to 3.12.0

3.11.0

7 years ago

Added

  • Laravel 5.4 support.

View the changes from 3.10.0 to 3.11.0

3.10.0

7 years ago

Added

  • shouldApplyVerifiedAtScope & shouldApplyVerifiedFlagScope methods to skip Verified flags global scope auto apply.

View the changes from 3.9.0 to 3.10.0

3.9.0

7 years ago

Added

  • shouldApplyExpiredAtScope & shouldApplyExpiredFlagScope methods to skip Expired flags global scope auto apply.

View the changes from 3.8.0 to 3.9.0

3.8.0

7 years ago

Added

  • shouldApplyPublishedAtScope & shouldApplyPublishedFlagScope methods to skip Published flags global scope auto apply.

View the changes from 3.7.0 to 3.8.0

3.7.0

7 years ago

Added

  • setKeptOnUpdate property in HasKeptFlagBehavior to control events.

Changed

  • HasAcceptedAtHelpers methods implemented.
  • HasAcceptedFlagHelpers methods implemented.
  • HasActiveFlagHelpers methods implemented.
  • HasKeptFlagHelpers methods implemented.
  • HasPublishedAtHelpers methods implemented.
  • HasPublishedFlagHelpers methods implemented.

View the changes from 3.6.0 to 3.7.0