All notable changes to laravel-eloquent-state-machines
will be documented in this file
- Added support for Laravel 9. By @leohubert in asantibanez#32
- Improved CI. By @leohubert in asantibanez#32
- 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 👍