Why doesn't validateAndCreate use the validated data? #638
piotrjoniec
started this conversation in
General
Replies: 1 comment
-
Yeah this is something I want to do, and an open issue on my list. Problem is that this causes a lot of issues with mapping and such, something we're going to take a look at in v5. |
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.
-
Currently, the
validateAndCreate
method validates the data, then creates the data object from the unfiltered payload:With the current approach, the "exclude" validation rules don't work. Why not just do this:
Now the exclude rules are working. Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions