title: How to save checkbox value to database Laravel
body: <p>here's my form code :</p>
  
  <pre><code> &lt;div class="form-group"&gt;
            &lt;label&gt;Warranty:&lt;/label&gt;
            {{ Form::checkbox('warranty', 0, false) }}
   &lt;/div&gt;
  </code></pre>
  
  <p>here's my controller code :</p>
  
  <pre><code>public function save(Request $request, $obj = null) {
  
  if (!$obj) {
      $obj = new Service;
  }
  (Input::has('warranty')) ? true : false;
  return $this-&gt;saveHandler($request, $obj);
  }
  </code></pre>
  
  <p>it throws this error Class 'App\Http\Controllers\Input' not found</p>
  
  <p>any idea ?</p>