This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
Releases: skore/laravel-status
Releases · skore/laravel-status
Major update of enum dependency & tests added
Changed
- Model::hasStatus() now accepts enum instances
- Required package
spatie/enum
upgraded to v3 - A lot of simplification all over the place
- Deprecated static method
Status::getDefault()
use insteadStatus::defaultFrom($model)
query scope
Added
Status::defaultFrom($model)
local query scopeStatusable::statusesClass
static method to get Statuses enum (can be also replaced to your own path)- Some package tests covering most of its code
Removed
Statusable::statuses
static propery has been removed in favor ofStatusable::statusesClass
to be user configurable
Small trait fixes
Fixed
- Remove lazy eager load of relation on trait (fixes some issues displaying the status relationship on APIs when not requested)
Fix to nova filter
Fixed
- Wrong StatusFilter query in Nova
v2.0.1
Add Laravel 8 support
Added
- Support for Laravel 8
Removed
- Support for Laravel 5
Bug & documentation fixes
Fixed
- HasStatus method returning wrong thing (also documented)
Bugfix
Minor fix (PSR-4)
Fixed
- Rename folder / fix namespace (PSR-4)
Missed stuff from previous release
Added
- Missed config option to the file
Changed
- Default to true enable_events config option
Events changes and "correctness"
Added
- Config option for enable or disable all the package events
Fixed
- Change trait event from Model's
dispatchesEvents
to passing callbacks methods - Saving from a replaced Model's built-in method to another event (
saving
)