title: Laravel update multiple rows
body: <p>I am a beginner with Laravel, and I'm stuck with my code.
  I would like to store my site options and details in the database, and what I am stuck with I don't know how to update multiple rows, maybe my database structure is not the best either.</p>
  
  <p>Database</p>
  
  <pre><code>id | option_name      | option_value
  1  | site_name        | Website name
  2  | site_slogen      | Website slogen
  3  | site_description | Website description
  4  | post_per_pages   | 20
  </code></pre>
  
  <p>My form</p>
  
  <pre><code>{{ Form::open('admin/options', 'POST', array('class' =&gt; 'span5 no-float centered')) }}
  
      @foreach($options as $option)
  
          &lt;?php $name = str_replace('_', ' ', ucfirst($option-&gt;option_name)); ?&gt;
  
          {{ Form::label($name, $name) }}
          @if($option-&gt;option_name == "site_description")
              {{ Form::textarea($option-&gt;option_name, $option-&gt;option_value, array('class' =&gt; 'input-block-level', 'rows' =&gt; '5')) }}
          @else
              {{ Form::text($option-&gt;option_name, $option-&gt;option_value, array('class' =&gt; 'input-block-level')) }}
          @endif
  
          {{ $errors-&gt;has($option-&gt;option_name) ? '&lt;p class="val_error"&gt;' .$errors-&gt;first($option-&gt;option_name). '&lt;/p&gt;' : '' }}
  
          {{ Form::hidden('id[]', $option-&gt;id) }}
      @endforeach
  
       {{ Form::button('Update options', array('class' =&gt; 'btn btn-primary btn-block')) }}
  </code></pre>
  
  <p>I know it's not the best, but I'm trying.
  Could someone give me a hint with the multiple update?</p>
  
  <p>I tried but I'm lost </p>