title: Getting selected option on edit form in laravel
body: <p>I have an editable form for my website orders and I have these fields:</p>
  
  <p><code>User</code> <code>quantity</code> <code>note</code> <code>status</code></p>
  
  <p>I also have other options in this form, but only these fields are important to me in order to be able to get the default values.</p>
  
  <p>For example, I want to be able to see the amount of quantity that a user has ordered by default and then I could change it or leave it alone. Currently all my drop-down values start from the first value and not what the user has chosen.</p>
  
  <p>How can I do that?</p>
  
  <p>This is my form:</p>
  
  <pre><code>{{ Form::model($order, array('route' =&gt; array('orders.update', $order-&gt;id), 'method' =&gt; 'PUT', 'files' =&gt; true)) }}
  
                  &lt;div class="form-group"&gt;
                    &lt;label class="col-md-3 control-label" for="type"&gt;Order ID&lt;/label&gt;
                    &lt;div class="col-md-9 inputGroupContainer"&gt;
                      &lt;div class="input-group"&gt;
                        &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-file-word-o"&gt;&lt;/i&gt;&lt;/span&gt;
                        &lt;input class="form-control" type="text" name="" value="{{ $order-&gt;id }}" readonly&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
  
  
                  &lt;div class="form-group"&gt;
                    &lt;label class="col-md-3" for="invoice_nu"&gt;Invoice Number:&lt;/label&gt;
                    &lt;div class="col-md-9 inputGroupContainer"&gt;
                      &lt;div class="input-group"&gt;
                        &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-sort-numeric-asc"&gt;&lt;/i&gt;&lt;/span&gt;
                        &lt;input class="form-control" type="text" name="invoice_nu" value="{{ $order-&gt;invoice_nu }}" readonly&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class="form-group"&gt;
                    &lt;label class="col-md-3 control-label" for="type"&gt;User&lt;/label&gt;
                    &lt;div class="col-md-9 inputGroupContainer"&gt;
                      &lt;div class="input-group"&gt;
                        &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-user-o"&gt;&lt;/i&gt;&lt;/span&gt;
                        &lt;select class="form-control" id="type" name="user_id"&gt;
                          @foreach($users as $user)
                              &lt;option value="{{ $user-&gt;id }}"&gt;{{ $user-&gt;name }}&lt;/option&gt;
                          @endforeach
                        &lt;/select&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
  
  
  
                  &lt;div class="form-group"&gt;
                    &lt;label class="col-md-3 control-label" for="type"&gt;Quantity&lt;/label&gt;
                    &lt;div class="col-md-9 inputGroupContainer"&gt;
                      &lt;div class="input-group"&gt;
                        &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-file-code-o"&gt;&lt;/i&gt;&lt;/span&gt;
                        &lt;select class="form-control" id="type" name="quantity"&gt;
                          &lt;option value=""&gt;Select Quantity&lt;/option&gt;
                          &lt;option value="1"&gt;1&lt;/option&gt;
                          &lt;option value="2"&gt;2&lt;/option&gt;
                          &lt;option value="3"&gt;3&lt;/option&gt;
                          &lt;option value="4"&gt;4&lt;/option&gt;
                          &lt;option value="5"&gt;5&lt;/option&gt;
                        &lt;/select&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class="form-group"&gt;
                    &lt;label class="col-md-3 control-label" for="type"&gt;Note&lt;/label&gt;
                    &lt;div class="col-md-9 inputGroupContainer"&gt;
                      &lt;div class="input-group"&gt;
                        &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-file-word-o"&gt;&lt;/i&gt;&lt;/span&gt;
                        &lt;textarea name="name" class="form-control" rows="8"&gt;@if(!empty($order-&gt;note)){{ $order-&gt;note }}@else-@endif&lt;/textarea&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
  
  
                  &lt;div class="form-group"&gt;
                    &lt;label class="col-md-3 control-label" for="type"&gt;Status&lt;/label&gt;
                    &lt;div class="col-md-9 inputGroupContainer"&gt;
                      &lt;div class="input-group"&gt;
                        &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-file-code-o"&gt;&lt;/i&gt;&lt;/span&gt;
                        &lt;select class="form-control" id="type" name="status"&gt;
                          &lt;option value="Waiting Payment"&gt;Waiting Payment&lt;/option&gt;
                          &lt;option value="Paid"&gt;Paid&lt;/option&gt;
                        &lt;/select&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
  
  
                  {{ Form::submit('Save', array('class' =&gt; 'btn btn-primary mt-20')) }}
  
                  {{ Form::close() }}
  </code></pre>