title: laravel 5.1 formData - AJAX - PHP- Uploading multiple files
body: <p>I can not get the formData from the file upload</p>
  
  <p><strong>form.blade.php</strong></p>
  
  <pre><code>&lt;form method="POST" class="form-horizontal" enctype="multipart/form-data" id="modal-file-upload"&gt;
      &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
      &lt;input type="hidden" name="folder" value="" id="modal-file-upload-folder"&gt;
      &lt;div class="modal-header"&gt;
          &lt;h4 class="modal-title"&gt;Upload New File&lt;/h4&gt;
      &lt;/div&gt;
      &lt;div class="modal-body"&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="file" class="col-sm-3 control-label"&gt;
                  File
              &lt;/label&gt;
              &lt;div class="col-sm-8"&gt;
                  &lt;input multiple="true" accept="image/*" required="true" id="fileToUpload" type="file" name="file[]"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="btn btn-default" onclick="close_upload_view()"&gt;Cancel&lt;/button&gt;
          &lt;button class="btn btn-primary" id="btn-upload"&gt;Upload File&lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>public function uploadMultiFile(Request $request) {
      // getting all of the post data
      $data = $request-&gt;input('formData');
      var_dump($data);  current   return null
  }
  </code></pre>