title: Modify database Laravel 5
body: <p>I have to do modifications on a website using Laravel which i never used before.</p>
  
  <p>I made this div in the form, in my view file :</p>
  
  <pre><code>&lt;div class="form-group"&gt;
    &lt;label class="col-md-4 control-label"&gt;Organisme&lt;/label&gt;
    &lt;div class="col-md-6"&gt;
      @if(Auth::user()-&gt;hasRole(['responsable_rh', 'responsable_formation', 'responsable_qual']))
        &lt;input type="text" class="form-control" name="organismeShow" value="{{$orga_user[0]-&gt;nom}}" readonly&gt;
        &lt;input type="hidden" name="id_organisme" value="{{$orga_user[0]-&gt;id_organisme}}"&gt;
      @elseif(Auth::user()-&gt;hasRole(['admin', 'super_admin']))
         &lt;select class="form-control chosen" name="id_organisme" autocomplete="off"&gt;
         @foreach($all_orga as $val)
           @if($val-&gt;id_organisme==13)
             &lt;OPTION selected value="{{$val-&gt;id_organisme}}"&gt;{{$val-&gt;nom}}&lt;/OPTION&gt;
           @else
             &lt;OPTION value="{{$val-&gt;id_organisme}}"&gt;{{$val-&gt;nom}}&lt;/OPTION&gt;
           @endif
         @endforeach
         &lt;/select&gt;
      @endif
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It works well, I have my list showing up. Now I need to make it change a value in the database but I don't know at all where to modify things. Know that this form already existed in the previous version, and already modify things in database, but I have to add this section.</p>
  
  <p>Form opener :</p>
  
  <pre><code>{!!Form::open(array('id'=&gt;'check_form', 'route' =&gt; 'rh_ajout_update'))!!} 
  {!!Form::close()!!}
  {!!Form::open(array('class'=&gt;'form-horizontal', 'route'=&gt;'update_user', 'files' =&gt; 'true', 'enctype' =&gt; 'multipart/form-data'))!!}
  {!!Form::hidden('id_compte', $compte-&gt;id_compte)!!}
  </code></pre>