title: Laravel collective form, how to upload multiple images?
body: <p>I wan't to change my form to enable more than one image to be uploaded at a time, this is what I currently have,</p>
  
  <p>part of my form:</p>
  
  <pre><code>{!! Form::open(['action' =&gt; 'PostsController@store', 'method' =&gt; 'POST', 'enctype' =&gt; 'multipart/form-data']) !!}
  
  {{Form::file('stock_image')}}
  </code></pre>
  
  <p>my controller:</p>
  
  <pre><code>if($request-&gt;hasFile('stock_image')){
          $filenameWithExt = $request-&gt;file('stock_image')-&gt;getClientOriginalName();
          $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME);
          $extension = $request-&gt;file('stock_image')-&gt;getClientOriginalExtension();
          $fileNameToStore= $filename.'_'.time().'.'.$extension;
          $path = $request-&gt;file('stock_image')-&gt;storeAs('public/images', $fileNameToStore);
      } else {
          $fileNameToStore = 'noimage.jpg';
      }
  </code></pre>
  
  <p>thanks for your help!</p>