Force user to pick at least one checkbox - Laravel
<p>How to validate if user has picked at least one checkbox by validating on the server side in Laravel 5.2</p>

<p>I have a simple select box:</p>

<pre><code>  &lt;label for="has_driverslicense"&gt;KFZ F&amp;uuml;hrerschein: &lt;/label&gt;
  &lt;select class="form-control" required="required" id="has_driverslicense" name="has_driverslicense"&gt;
    &lt;option value="0"&gt;Nein&lt;/option&gt;
    &lt;option value="1"&gt;Ja&lt;/option&gt;
  &lt;/select&gt;
</code></pre>

<p>and a hidden div:</p>

<pre><code> &lt;div id="kfz" style="display: none;"&gt;
    &lt;div&gt;
      &lt;input id="checkbox-20" class="checkbox-style" name="B" type="checkbox"&gt;
      &lt;label for="checkbox-20" class="checkbox-style-3-label"&gt;B (Auto bis 3,49t)&lt;/label&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;input id="checkbox-21" class="checkbox-style" name="B+E" type="checkbox"&gt;
      &lt;label for="checkbox-21" class="checkbox-style-3-label"&gt;BE (Auto mit Anh&amp;auml;nger)&lt;/label&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;input id="checkbox-22" class="checkbox-style" name="C1" type="checkbox"&gt;
      &lt;label for="checkbox-22" class="checkbox-style-3-label"&gt;C1 (LKW bis 7,49t)&lt;/label&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;input id="checkbox-23" class="checkbox-style" name="C" type="checkbox"&gt;
      &lt;label for="checkbox-23" class="checkbox-style-3-label"&gt;C (LKW bis 40t)&lt;/label&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;input id="checkbox-24" class="checkbox-style" name="CE" type="checkbox"&gt;
      &lt;label for="checkbox-24" class="checkbox-style-3-label"&gt;CE (LKW mit Anh&amp;auml;nger)&lt;/label&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;input id="checkbox-25" class="checkbox-style" name="fahrerkarte" type="checkbox"&gt;
      &lt;label for="checkbox-25" class="checkbox-style-3-label"&gt;Fahrerkarte&lt;/label&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;input id="checkbox-26" class="checkbox-style" name="gabelstapler" type="checkbox"&gt;
      &lt;label for="checkbox-26" class="checkbox-style-3-label"&gt;Gabelstaplerf&amp;uuml;hrerschein&lt;/label&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;input id="checkbox-27" class="checkbox-style" name="gelaendestapler" type="checkbox"&gt;
      &lt;label for="checkbox-27" class="checkbox-style-3-label"&gt;Gel&amp;auml;ndestaplerf&amp;uuml;hrerschein&lt;/label&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;input id="checkbox-28" class="checkbox-style" name="IPAF" type="checkbox"&gt;
      &lt;label for="checkbox-28" class="checkbox-style-3-label"&gt;IPAF – Arbeitsbühnen&lt;/label&gt;
    &lt;/div&gt;
  &lt;/div&gt;
</code></pre>

<p>When user chooses yes/ja he should choose which category does he have.
At the moment all works but i can get a user with driving licence but no category and that is baaaad! :) If you know what i mean!
Help please.</p>

<p>Here is the <a href="http://jsfiddle.net/f4PV4/800/" rel="nofollow">FIDDLE</a> example</p>