Skip to content

Why is validation working only when Data object is creating from Request #82

Answered by rubenvanassche
mnogokotin asked this question in Q&A
Discussion options

You must be logged in to vote

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);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mnogokotin
Comment options

Answer selected by mnogokotin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants