title: integrate Dropzone.js in Laravel 5.2
body: <p>In my laravel 5.2 project I need to create a multi file upload area. I choose Dropzone.js
  Now my problem is how to use this plugin with laravel. </p>
  
  <p>this is my view:</p>
  
  <pre><code>&lt;div class="tab-pane" id="tab_2"&gt;
                  &lt;div class="box-body"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label for="inputEmail3" class="col-sm-2 control-label"&gt;Facebook:&lt;/label&gt;
                          &lt;div class="col-sm-10"&gt;
                              &lt;input type="text" name="facebook" class="form-control"&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label for="inputEmail3" class="col-sm-2 control-label"&gt;Twitter:&lt;/label&gt;
                          &lt;div class="col-sm-10"&gt;
                              &lt;input type="text" name="twitter" class="form-control"&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label for="video" class="col-sm-2 control-label"&gt;Video:&lt;/label&gt;
                          &lt;div class="col-sm-10"&gt;
                              &lt;input type="text" name="video" class="form-control"&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  
                      &lt;!--File Upload--&gt;
  
  
          &lt;div class="dropzone" id="dropzoneFileUpload"&gt;
          &lt;/div&gt;
  
  
  
   &lt;script type="text/javascript"&gt;
          var baseUrl = "{{ url('/') }}";
          var token = "{{ Session::getToken() }}";
          Dropzone.autoDiscover = false;
           var myDropzone = new Dropzone("div#dropzoneFileUpload", {
               url: baseUrl+"/dropzone/uploadFiles",
               params: {
                  _token: token
                }
           });
           Dropzone.options.myAwesomeDropzone = {
              paramName: "file",
              maxFilesize: 2, // MB
              addRemoveLinks: true,
              accept: function(file, done) {
  
              },
            };
       &lt;/script&gt;
  </code></pre>
  
  <p>my controller:</p>
  
  <pre><code>    public function store(SpotFormRequest $request) {
       $user = Auth::user();
       $role = $user-&gt;role;
       if($role === 'manager'){
           $idagent = 1;
           $idmanager = $user-&gt;id;
       }
       else{
           $idagent=$user-&gt;id;
           $idmanager=0;
       }
  
  
      $spot = new Spot(array(
          'agent_id'=&gt;$idagent,
          'manager_id'=&gt;$idmanager,
          'name' =&gt; $request-&gt;get('spotname'),
          'address' =&gt; $request-&gt;get('address'),
          'zip' =&gt; $request-&gt;get('zip'),
          'city'=&gt;$request-&gt;get('city_id'),
          'phone' =&gt; $request-&gt;get('phone'),
          'mobile' =&gt; $request-&gt;get('mobile'),
      ));
      $spot-&gt;save();
  
      return redirect('/administrator/spot-new')-&gt;with('status', 'Your spot has been created!');
  }
  </code></pre>
  
  <p>I need to integrate the upload in the controller. </p>