Get only validated fields to array from DTO request #371
-
Hi, I have been looking but I have not found anything, is it not possible from a DTO from a request, to get only the fields that are in the dto/validation to array? because with $request0->all() is taking all the fields that are sent from the resquet and I only want the ones that have been really validated. Something like laravel has with the ->validated() method. |
Beta Was this translation helpful? Give feedback.
Answered by
drew-acheson
Mar 3, 2023
Replies: 1 comment 1 reply
-
The way I have been using the library this works exactly like it sounds like you want it to.
Perhaps you can provide some code to show what you're doing? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
julianphp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The way I have been using the library this works exactly like it sounds like you want it to.
Perhaps you can provide some code to show what you're doing?