Why is validation working only when Data object is creating from Request #82
Answered
by
rubenvanassche
mnogokotin
asked this question in
Q&A
-
Can you explain it, please? Should I use DataFromSomethingResolver class:
|
Beta Was this translation helpful? Give feedback.
Answered by
rubenvanassche
Jan 26, 2022
Replies: 1 comment 1 reply
-
By default when creating objects from array we do not validate the payload. You can create a data object from array validate such a payload like this: SomeData::validate($properties); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mnogokotin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default when creating objects from array we do not validate the payload. You can create a data object from array validate such a payload like this: