laravel-eloquent-state-machines icon indicating copy to clipboard operation
laravel-eloquent-state-machines copied to clipboard

Laravel 9 Enum

Open WlokaDev opened this issue 3 years ago • 2 comments

Laravel 9 support casting enum in model, after adding this casts, the state machine lives with errors.

To Reproduce Steps to reproduce the behavior:

  1. Create Enum
  2. Add casting attribute in model to enum
  3. Use TransitionTo

Expected behavior Working

Screenshots obraz obraz

Additional context Add any other context about the problem here.

Solution Ideas Initial thoughts or details about how this could be fixed

WlokaDev avatar Mar 10 '22 20:03 WlokaDev

That would be great to have support for native PHP enums.

mkaczm01 avatar May 30 '22 05:05 mkaczm01

Hi, I would love to use enums to register all possible states too! Are there any workaround? Thanks!

GonzaloGPF avatar Jul 05 '22 09:07 GonzaloGPF