laravel-eloquent-state-machines
laravel-eloquent-state-machines copied to clipboard
Laravel 9 Enum
Laravel 9 support casting enum in model, after adding this casts, the state machine lives with errors.
To Reproduce Steps to reproduce the behavior:
- Create Enum
- Add casting attribute in model to enum
- Use TransitionTo
Expected behavior Working
Screenshots

Additional context Add any other context about the problem here.
Solution Ideas Initial thoughts or details about how this could be fixed
That would be great to have support for native PHP enums.
Hi, I would love to use enums to register all possible states too! Are there any workaround? Thanks!