php - Laravel Request getting array of uploaded files -


i have input in view:

<input type="file" name="slide[]"> <button type="button" ng-click="addslide()">add new</button> 

now need array of uploaded files if do:

dd($request->file('slide')); 

it's retrieving me first one.

how can access them?

try adding multiple attribute file tag.

<input type="file" name="slide[]" multiple> <button type="button" ng-click="addslide()">add new</button> 

you might want check out this tutorial well.


Comments