Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I started thinking of an idea of being able to save an array of Enums objects as to a json array and then when they are returned they would then be cast as the correct Enum objects.
I created my own casting class to handle this. Is there any interest in adding this to the Laravel framework? If you're all interested I could write a pull request and add it to
Illuminate\Database\Eloquent\Casts
and call it:AsEnumArray
?Code improvements and suggestions are always appreciated :).
Beta Was this translation helpful? Give feedback.
All reactions