title: How to get multiple rows data of the form in controller in laravel 5.1
body: <p>I have to show/edit a form in my page. I'm fetching all rows from table and showing in table format which is editable.
  Once the table is edited. I want all those rows to update in database using controller, however I dont know how to get all form rows through request object in laravel 5.1.</p>
  
  <pre><code>$records = $request-&gt;all();
  </code></pre>
  
  <p>As request object giving only last row of the form.
  Any suggestion? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>@section('content')
  {!! Form::open(array('url' =&gt; 'madcat/update', 'method' =&gt; 'put', 'class'=&gt;'form-horizontal')) !!}
  &lt;input type="hidden" name="_token" value="{!! csrf_token() !!}"&gt;
      &lt;div class="form-group"&gt;                
          &lt;table class=" table table-condensed"&gt;
          &lt;thead&gt; 
           &lt;tr&gt; 
            &lt;th&gt;#&lt;/th&gt;
            &lt;th&gt;Field&lt;/th&gt; 
            &lt;th&gt;Max&lt;/th&gt;
               &lt;th&gt;Min&lt;/th&gt;
           &lt;/tr&gt; 
          &lt;/thead&gt;
          @foreach($records as $key =&gt; $value)
            &lt;tr&gt;
             &lt;td&gt;{!!Form::text('id',$value-&gt;id,['readonly'])!!}&lt;/td&gt;
              &lt;td&gt;{!!Form::checkbox('Field_check'.$value-&gt;id)!!}{!! Form::text('Field',$value-&gt;Field,['readonly'])!!}&lt;/td&gt;
              &lt;td&gt;{!!Form::checkbox('Max_check'.$value-&gt;id)!!}{!! Form::text('Max',$value-&gt;Max,['readonly'],array('size'=&gt;'4'))!!}&lt;/td&gt;
              &lt;td&gt;{!!Form::checkbox('Min_check'.$value-&gt;id)!!}{!!Form::text('Min', $value-&gt;Min,['readonly'],array('size'=&gt;'4'))!!}&lt;/td&gt;
            &lt;/tr&gt;
          @endforeach
          &lt;/table&gt;
          &lt;div class="col-md-6 col-md-offset-11"&gt;
          {!!Form::submit('Save', array('class'=&gt;'btn btn-primary'))!!}
          
    &lt;/div&gt;
      &lt;/div&gt;
      {!!Form::close()!!}
  @endsection</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is the code of HTML. Here I will check the checkbox in front of all the rows element so that I want to update only those rows in another table.</p>