Winzou State Machine service provider for Laravel
Normalize null states to associative arrays (Thanks to @RTC1)
Laravel 7 requires components from Symfony 5, but winzou/state-machine
depends on components from Symfony 4, which aren't compatible. For this reason I created a fork which supports Symfony 5.
Until this fork gets merged in the source package, this package will require the fork using a VCS repository. Since Composer cannot load dependencies recursively, you have to load this fork using a VCS repository as well.
In your composer.json change the version constraint:
"require": {
- "sebdesign/laravel-state-machine": "^2.0"
+ "sebdesign/laravel-state-machine": "^3.0"
}
Add the following section:
+ "repositories": [
+ {
+ "type": "vcs",
+ "url": "https://github.com/sebdesign/state-machine"
+ }
+ ]
And then run composer update
.
Read more in the Context section of the README.
Fix service provider (#29)
Use loose equality operator for comparing states (#27) Thanks @ddevdreamer
Fix normalization of numeric states