Laravel State Machine Versions Save

Winzou State Machine service provider for Laravel

v2.1.1

3 years ago

Normalize null states to associative arrays (Thanks to @RTC1)

v3.1.1

3 years ago
  • Normalize null states to associative arrays (Thanks to @RTC1)

v3.1.0

3 years ago
  • Add support for Laravel 8

v3.0.2

3 years ago
  • Remove bool typehint from $soft parameter

v3.0.1

3 years ago

Fixed

  • Quote state and transition names (#41)

v3.0.0

4 years ago

Added

  • Add support for Laravel 7
  • Add command to generate images of graphs (#32)

Fixed

  • Display array when debugging metadata (#33)

Removed

  • Remove support for Laravel 6

Breaking changes

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.

Upgrade guide

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.

v2.1.0

4 years ago

Added

  • Check or apply transitions with additional context

Read more in the Context section of the README.

v2.0.4

4 years ago

Fix service provider (#29)

v2.0.3

4 years ago

Use loose equality operator for comparing states (#27) Thanks @ddevdreamer

v2.0.2

4 years ago

Fix normalization of numeric states