Releases: open-southeners/laravel-model-status
Releases · open-southeners/laravel-model-status
2.1.0
2.0.4
Fixed
- Fully qualify columns on statuses query scopes
2.0.3
Fixed
- Models creating event stopping propagation of other events
2.0.2
Added
- Laravel 10 support
2.0.1
Fixed
- StatusEnumCaseName using
$defaultStatus
protected static property
2.0.0
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
andsetStatusWhen
functions doesn't return self, instead they return alwaystrue
when not saving, true or false otherwise
Fixed
StatusEnumCaseName
attribute cast now returnsdefaultStatus
if defined on the trait, null otherwise
1.2.1
Fixed
BackedEnum::tryFrom
throwing deprecation warnings when argument is null
1.2.0
Added
ofStatuses
query scope toHasStatuses
trait
1.1.0
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
Fixed
- Wrong version to dependency
open-southeners/laravel-helpers