title: Laravel Ajax Input::all() return empty when send it via FormData
body: <p>im building an application with Laravel 4, in some point i want to add some model throught modal(Bootstrap) so i needed ajax to send my from, i have setup my route and action in controller, and then i have built the form markup with blade, i have wrote the ajax code, the request goes fine and i retrieve the inputs through Input facade, the problem here is that form has a file input, and when serialising form data with $('#formRub ').serialize(), it can't handle the file input, so i have to use FromData object and set the processData and contentType to false in the ajax request, the request sent, but i when u access to Input facade i got empty array !! </p>
  
  <p>Route : </p>
  
  <p><code>Route::post('/add', ['as' =&gt; 'rubrique.add.post', 'uses' =&gt; 'RubriquesController@ajaxaddpost']);
  </code></p>
  
  <p>Controller : </p>
  
  <pre><code>class RubriquesController extends \BaseController {
  
  
  public function ajaxaddpost(){
    return  dd(Input::all());
      $v = Validator::make(Input::all(), Rubrique::$rules);
      if($v-&gt;fails()){
          return Response::json([
              'fail' =&gt; true,
              'errors' =&gt; $v-&gt;errors()-&gt;toArray()
          ]);
      }
      if(Input::hasFile('image'))
          return Response::json(['success' =&gt; Input::file('image')]);
  
      return Response::json(['fail' =&gt; 400]);
  }
  </code></pre>
  
  <p>Markup :</p>
  
  <pre><code>         {{ Form::open(['route' =&gt; 'rubrique.add.post', 'method' =&gt; 'post', 'files' =&gt; true, 'class' =&gt; 'form-horizontal', 'id' =&gt; 'rubForm']) }}
                  {{Form::label('name', 'Nom de la boutique :', ['class' =&gt; 'col-md-4 control-label'])}}
                      {{Form::text('name', null, ['class' =&gt; 'form-control', 'placeholder' =&gt; 'Entrer votre nom de boutique..'])}}
  
                  {{Form::label('desc', 'Description :', ['class' =&gt; 'col-md-4 control-label'])}}
                      {{Form::textarea('desc', null, ['class' =&gt; 'form-control', 'placeholder' =&gt; 'Enter votre e-mail..', 'rows' =&gt; '3'])}}
  
  
  
                  {{Form::label('image', 'Image :', ['class' =&gt; 'col-md-4 control-label'])}}
                      {{Form::file('image', ['class' =&gt; 'form-control', 'placeholder' =&gt; 'Enter votre e-mail..'])}}
  
                  {{Form::label('rubrique_id', 'Rubrique Parent :', ['class' =&gt; 'col-md-4 control-label'])}}
                      {{ Form::rubriques(0) }}
  
              &lt;div class="modal-footer"&gt;
                  &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
                  {{Form::submit('Ajouter', ['class' =&gt; 'btn btn-primary', 'id' =&gt; 'sendRubrique']) }}
  
              &lt;/div&gt;
          &lt;/div&gt;
          {{Form::close()}}
  </code></pre>
  
  <p>JS: </p>
  
  <pre><code>        $('#rubForm').submit(function(e){
              e.preventDefault();
              var $form = $( this ),
                  dataFrom = new FormData($form),
                  url = $form.attr( "action"),
                  method = $form.attr( "method" );
  
              $.ajax({
                  url: url,
                  data: dataFrom,
                  type: method,
                  contentType: false,
                  processData: false
              });
          });
  </code></pre>