blog and things oh hi there!
Upload multiple files in Laravel 5.1

Start by creating a simple form in the view.

<form method="post" action="/some-endpoint" enctype="multipart/form-data">
    <input type="file" name="uploads[]" multiple>
    <button type="submit">Submit!</button>
</form>

Once on the php side, you can get to the files like this.

$uploads = Input::file('uploads');
© 2019 Kevin Jung