title: How to update checkbox field and option field in Laravel 5.2?
body: <p>I can update <code>text</code> field of a <code>form</code> but i can not update <code>checkbox</code> field,<code>option</code> field and <code>file</code> field in Laravel 5.2. I i going to update then i can see all text value is perfectly shown in update blade view but in option field, checkbox field i see it is default value its don't comes from database. Again if i update with another option then its not saving.What i have tried so far:</p>
  
  <p><strong>My Controller:</strong></p>
  
  <pre><code>public function update(Request $request, $id=0)
  {
      //
      $id = $request-&gt;input("id");
      $product = Product::find($id);
      $product-&gt;product_name = $request-&gt;input('product_name');
      $product-&gt;product_storage = $request-&gt;input('product_storage');
      $product-&gt;product_percentage = $request-&gt;input('product_percentage');
      $product-&gt;can_draw = $request-&gt;input('can_draw');
      $product-&gt;real_price = $request-&gt;input('real_price');
      $product-&gt;product_image = $request-&gt;input('product_image');
  
      $product-&gt;save();
  
      $request-&gt;session()-&gt;flash('alert-info', 'Product Successfully Updated!'); 
      return Redirect::to('admin/product/all');
  }
  </code></pre>
  
  <p><strong>My update.blade.php View:</strong></p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;label class="col-md-3 control-label"&gt;{{ trans('common.can_be_draw') }}&lt;/label&gt;
      &lt;div class="col-md-9"&gt;
          &lt;div class="input-icon"&gt;
          &lt;i class="fa fa-money" aria-hidden="true"&gt;&lt;/i&gt;
              &lt;select name="can_draw" class="form-control"&gt;
                  &lt;option value="{{ $product-&gt;can_draw }}"&gt;{{ trans('common.open') }}open&lt;/option&gt;
                  &lt;option value="{{ $product-&gt;can_draw }}"&gt;{{ trans('common.close') }}close&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"&gt;{{ trans('common.real_prize') }}&lt;/label&gt;
      &lt;div class="col-md-9"&gt;
          &lt;div class="input-icon"&gt;
  
              &lt;input type="radio" class="form-control" name="real_price" value="{{ $product-&gt;real_price }}"&gt; {{ trans('common.yes') }}yes 
              &lt;input type="radio" class="form-control" name="real_price" value="{{ $product-&gt;real_price }}" checked="checked"&gt; {{ trans('common.no') }}no
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="form-group"&gt;
      &lt;label for="exampleInputFile" class="col-md-3 control-label"&gt;{{ trans('common.product_picture') }}&lt;/label&gt;
      &lt;div class="col-md-9"&gt;
          &lt;input type="file" id="exampleInputFile" name="product_image" value="{{ $product-&gt;product_image }}"&gt;
          &lt;small&gt;{{ trans('common.pic_summery') }}&lt;/small&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>