Replies: 2 comments 2 replies
-
How? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Looks like somehow the property was not filled in, since the optional value was used. How did you create the data object? |
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.
-
Hello everyone.
I've a simple DTO like the following example
This cast doesn't like the fact that my Eloquent model has an internal cast for age as follow
If I try to use that dto this is the error that comes out
I honestly have no clue what to do next, do I need to drop Eloquent cast? I would like to keep the Eloquent internal cast so my next idea could be to create a custom Eloquent cast for integers but that sounds weird.
UPDATE This seems to be a problem with Eloquent
$casts
in general not only with integersBeta Was this translation helpful? Give feedback.
All reactions