Answer the question
In order to leave comments, you need to log in
How to make a nested array of images?
There is a form:
//1
<input type="file" name="image[]">
<input type="text" name="name[]">
//2
<input type="file" name="image[]">
<input type="text" name="name[]">
"name" => array:2 [▼
0 => "First"
1 => "gjghj"
],
"image" => array:3 [▼
0 => UploadedFile {#215 ▶}
1 => UploadedFile {#216 ▶}
2 => UploadedFile {#217 ▶}
"image" => array:3 [▼
0 => [
0 => UploadedFile {#215 ▶}
1 => UploadedFile {#215 ▶}
]
1 => [
0 => UploadedFile {#215 ▶}
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question