All notable changes to laravel-eloquent-state-machines
will be documented in this file
- Laravel 11.x Compatibility
- Laravel 10.x Compatibility by @laravel-shift in #38
- Several updates and typo fix in Readme by @ajaxray in #37
- Added data to the transition exception by @jezzdk in #30
- Added ability to use wildcard in allowed state changes by @jezzdk in #28
- Added support for arrays in transition query methods by @jezzdk in #27
- Made
callable
null forwhereHas
query helper - Removed unused configuration
- Reverted afterTransitionHooks array key to use $to for definition (Breaking change)
- Added
changed_attributes
field instate_histories
to record model old/new values during transition (Breaking change)
- Added
beforeTransitionHooks
- Renamed
transitionHooks
toafterTransitionHooks
and changed arguments for callbacks (Breaking Change) - Refactored tests
- Added support for PHP 8.
- Fixed
Str
import.
- Added
snake_case()
andcamelCase()
method for state machine field.
- Added macros on query builder to interact with
state_history
- Added auth()->user() in state history during model creation
- Fixed exported migrations
- Added ability to postpone transitions
- Added responsible property to StateHistory model
- Added check for current state when transitioning to same state
- Added check for auto recording history when on creating model event
- Initial release. Enjoy 👍