title: How to validate if checkbox is checked in laravel?
body: <p>I have a checkbox in my view</p>
  
  <pre><code>&lt;input type="checkbox" id="test5"&gt;
  </code></pre>
  
  <p>and I want to validate in my controller if the checkbox is checked</p>
  
  <pre><code>if (Input::get('test5') === true) {
       //insert 1
  } else {
      //insert 0
  }
  </code></pre>