title: Laravel 5.5 saving multiple photos with 1 file input
body: <p>I have a form with 1 file input and my goal is to store all picture that I select with CTRL+click.</p>
  
  <p>The response of my ajax call always returns only 1 filename how can I make it return an object of all my files?</p>
  
  <p>My input field:</p>
  
  <pre><code>&lt;?php echo Form::file('photos[]', ['multiple', 'id' =&gt; 'photos']); ?&gt;
  </code></pre>
  
  <p>My Ajax call:</p>
  
  <pre><code>let token = $('meta[name="csrf-token"]').attr('content');
  let photos = $('input[type=file]').val().split('\\').pop();
  
  var values = {
      photos: photos,
  }
  
  $.ajax({
     type: 'POST',
     url: '/upload',
     dataType: 'JSON',
     data: {
         "_method": 'POST',
         "_token": token,
         "values": values
     },
     success:function(data){
         console.log('success');
         console.log(data);
     },
     error:function(){
     },
  });
  </code></pre>
  
  <p>My controller method:</p>
  
  <pre><code>/**
   * Handles the upload of the images.
   *
   * @return Response
   */
  public function uploadSubmit(Request $request)
  {
      if ($request-&gt;isMethod('post')){  
  
          $values = $request-&gt;values;
  
          return response()-&gt;json([
                                      'response'  =&gt; 'This is post method',
                                      'values'    =&gt; $values
                                  ]); 
      }
  }
  </code></pre>