title: How to validate array in Laravel?
body: <p>I try to validate array POST in Laravel:</p>
  <pre class="lang-php prettyprint-override"><code>$validator = Validator::make($request-&gt;all(), [
      &quot;name.*&quot; =&gt; 'required|distinct|min:3',
      &quot;amount.*&quot; =&gt; 'required|integer|min:1',
      &quot;description.*&quot; =&gt; &quot;required|string&quot;
               
  ]);
  </code></pre>
  <p>I send empty POST and get this <code>if ($validator-&gt;fails()) {}</code> as <code>False</code>. It means that validation is true, but it is not.</p>
  <p>How to validate array in Laravel? When I submit a form with <code>input name=&quot;name[]&quot;</code></p>