title: laravel validate radio array
body: <p>I use laravel 5.3, this my snippet view code :</p>
  
  <pre><code>&lt;tr&gt;
          &lt;td&gt;
              &lt;label class="radio-inline"&gt;
              &lt;input name="val[1]" type="radio" value="1" &gt;Rate 1&lt;/label&gt;
              &lt;label class="radio-inline"&gt;
              &lt;input name="val[1]" type="radio" value="2" &gt;Rate 2&lt;/label&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label class="radio-inline"&gt;
              &lt;input name="val[2]" type="radio" value="1" &gt;Rate 1&lt;/label&gt;
              &lt;label class="radio-inline"&gt;
              &lt;input name="val[2]" type="radio" value="2" &gt;Rate 2&lt;/label&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>and this my validation in controller :</p>
  
  <pre><code>$rules = array(
       'val[]'    =&gt; 'required|in:1,2,3,4,5',
  );
  
  $validator = Validator::make(Input::all(), $rules);
  </code></pre>
  
  <p>If I check all radio and submit form, the error appears with this message : The val[] field is required.</p>
  
  <p>How to validate array of radios ?</p>
  
  <p><strong>Update this solution</strong></p>
  
  <pre><code>&lt;tr&gt;
          &lt;td&gt;
              &lt;label class="radio-inline"&gt;
              &lt;input name="val[1]" type="radio" value="1" required="true" &gt;Rate 1&lt;/label&gt;
              &lt;label class="radio-inline"&gt;
              &lt;input name="val[1]" type="radio" value="2" required="true" &gt;Rate 2&lt;/label&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label class="radio-inline"&gt;
              &lt;input name="val[2]" type="radio" value="1" required="true" &gt;Rate 1&lt;/label&gt;
              &lt;label class="radio-inline"&gt;
              &lt;input name="val[2]" type="radio" value="2" required="true" &gt;Rate 2&lt;/label&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>thank to answerers this question</p>