Skip to content

Releases: open-southeners/laravel-model-status

2.1.0

13 Mar 11:31
6186448
Compare
Choose a tag to compare

Added

  • Laravel 11 support

2.0.4

18 Sep 17:07
4c152c5
Compare
Choose a tag to compare

Fixed

  • Fully qualify columns on statuses query scopes

2.0.3

29 Mar 11:10
89e2e16
Compare
Choose a tag to compare

Fixed

  • Models creating event stopping propagation of other events

2.0.2

14 Feb 20:37
e709e3c
Compare
Choose a tag to compare

Added

  • Laravel 10 support

2.0.1

03 Feb 10:18
4c7485e
Compare
Choose a tag to compare

Fixed

  • StatusEnumCaseName using $defaultStatus protected static property

2.0.0

02 Feb 17:40
b37e959
Compare
Choose a tag to compare

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

1.2.1

26 Jan 11:39
c5d2590
Compare
Choose a tag to compare

Fixed

  • BackedEnum::tryFrom throwing deprecation warnings when argument is null

1.2.0

17 Jan 11:47
f0531d7
Compare
Choose a tag to compare

Added

  • ofStatuses query scope to HasStatuses trait

1.1.0

04 Jan 12:01
d43b172
Compare
Choose a tag to compare

Added

  • Status attribute cast for toArray / toJson Laravel model methods

Removed

  • open-southeners/laravel-helpers dependency (not gonna use UnitEnums)

Fixed

  • Inconsistency when getting status enum as attribute

1.0.1

30 Dec 09:50
c40adf1
Compare
Choose a tag to compare

Fixed

  • Wrong version to dependency open-southeners/laravel-helpers