Skip to content

2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Feb 17:40
· 23 commits to main since this release
b37e959

Added

  • Status swapping & swapped events (observable) to Eloquent models that uses the HasStatuses trait: swappingStatusName, swappedStatusName. Do not confuse with saving, saved Eloquent events, these are triggered from setStatus & setStatusWhen functions, so may you always use these

Changed

  • setStatus and setStatusWhen functions doesn't return self, instead they return always true when not saving, true or false otherwise

Fixed

  • StatusEnumCaseName attribute cast now returns defaultStatus if defined on the trait, null otherwise