All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Laravel 11 support
- Fully qualify columns on statuses query scopes
- Models creating event stopping propagation of other events
- Laravel 10 support
- StatusEnumCaseName using
$defaultStatus
protected static property
- 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
setStatus
andsetStatusWhen
functions doesn't return self, instead they return alwaystrue
when not saving, true or false otherwise
StatusEnumCaseName
attribute cast now returnsdefaultStatus
if defined on the trait, null otherwise
BackedEnum::tryFrom
throwing deprecation warnings when argument is null
ofStatuses
query scope toHasStatuses
trait
- Status attribute cast for
toArray
/toJson
Laravel model methods
open-southeners/laravel-helpers
dependency (not gonna use UnitEnums)
- Inconsistency when getting status enum as attribute
- Wrong version to dependency
open-southeners/laravel-helpers
- Package published on Packagist (composer)