I need to build a form that allows multiple file uploads and also allows repeatable form groups. The form group that can be repeated contains upload fields which can be dynamically added too e.g add another file functionality.
One thing I can't figure out is how I can access the uploaded files if they're nested in an array in the request i.e Request::file('upload'); won't work.
Here's an example of the HTML of the file input and you can see the level of nesting that's going on.
<input class="js-file-input" name="request[0][files[]]" type="file" />
The request index is incremented for each new form group that's added to build up a list of requests made by a user on the app.
Any help would be greatly appreciated. Thanks!