title: Laravel 5.2 - MultiUpload inputs
body: <p>i would like that my users can upload 4 images, this is the first time that i do a similar feature, but i don't know HOW DO IT? CREATE ARRAY? i would like have more inputs, i don't want use multiselect files, i'm tryng like this: </p>
  
  <p>FORM HTML:</p>
  
  <pre><code>{!! Form::open(array('url'=&gt;'crea-regalo','method'=&gt;'POST','class' =&gt; 'form-horizontal', 'files'=&gt;true)) !!}
  
  &lt;!-- photo --&gt;
  &lt;div class="form-group"&gt;
     &lt;label class="col-md-3 control-label" for="textarea"&gt; Picture &lt;/label&gt;
     &lt;div class="col-md-8"&gt;
  
      &lt;div class="mb10"&gt;
  
       &lt;input id="input-upload-img1" name="image" type="file" class="file" data-preview-file-type="text"&gt;
     &lt;/div&gt;
  
     &lt;div class="mb10"&gt;
  
       &lt;input id="input-upload-img2" name="image" type="file" class="file" data-preview-file-type="text"&gt;
     &lt;/div&gt;
  
  
     &lt;div class="mb10"&gt;
  
       &lt;input id="input-upload-img3" name="image" type="file" class="file" data-preview-file-type="text"&gt;
     &lt;/div&gt;
  
  
     &lt;div class="mb10"&gt;
  
       &lt;input id="input-upload-img4" name="image" type="file" class="file" data-preview-file-type="text"&gt;
     &lt;/div&gt;
  
  {!! Form::close() !!}
  </code></pre>
  
  <p>CONTROLLER - Actually i have a code for only one image - It work well</p>
  
  <pre><code>public function creaPost(Request $request){
           // get id of post created by user
           $get_post_created = Post::where('slug', str_slug($request-&gt;input('title'),'-'))-&gt;first();
           // set file uploaded
           $file = $request-&gt;file('image');
           // create instance image intervation
           $image = image::make($request-&gt;file('image'));
           // create path
           $path = public_path().'/images/post/';
           // rename image with id user - if more one i can change this myself
           $name_file = $get_post_created-&gt;id . '.' . $request-&gt;file('image')-&gt;getClientOriginalExtension();
  
          //resize
          $image-&gt;resize(100,100);
          // save image
          $image-&gt;save($path.$name_file);
          // update post with image uploaded
          $user = new Post;
          $user-&gt;where('id', '=', $get_post_created-&gt;id)-&gt;update(['image' =&gt; 'images/post/'.$name_file]);
          return redirect('/')-&gt;with('message-success', 'Post creato con successo!');
  }
  </code></pre>