Nested scalar type collections #1021
Closed
SanderSander
started this conversation in
Ideas
Replies: 0 comments
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.
-
I know that it's possible to typehint nested collections as described here: https://spatie.be/docs/laravel-data/v4/as-a-data-transfer-object/nesting#content-collections-of-data-objects
But it would be nice if this would also work with scalar collections:
For example
int[]
This should improve validation
This would also be nice if the values are the correct scalar type, so that all the items in the array are truly integers instead of string.
This would nice if we post a list with integers from a for example a select box in a form.
Beta Was this translation helpful? Give feedback.
All reactions