Replies: 3 comments
-
FWIW, my personal preference is option 1 or 2 |
Beta Was this translation helpful? Give feedback.
0 replies
-
A quick update: part of this can be fixed by using |
Beta Was this translation helpful? Give feedback.
0 replies
-
Final version: https://github.com/spatie/laravel-enum/blob/main/CHANGELOG.md#300---2022-02-03 |
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
-
There's a problem with Laravel 9: the underlying Symfony 6 components introduce a breaking change in what data can be returned from InputBag: symfony/symfony#44432 (only scalar data can be returned anymore).
We have a feature called Request Data Transformation that overwrites request data with enum objects. In Laravel 9, this feature simply won't work anymore because of Symfony's internal InputBag changes.
There are several ways to mitigate this issue:
Beta Was this translation helpful? Give feedback.
All reactions