title: Laravel filled validation rule for array element
body: <p>I need to check input array of strings and raise warning if at least one of array elements is empty.</p>
  
  <p>The following rule is used:</p>
  
  <pre><code>return Validator::make($data, [
      'branches'         =&gt; 'array',
      'branches.*'       =&gt; 'filled|max:255'
      ]);
  </code></pre>
  
  <p>However it seems filled rule doesn't work (while min:1 works fine).
  Should it work with array elements or not? </p>
  
  <p><strong>UPDATE:</strong>
  branches array is not mandatory, but if exists it should contain non empty elements.</p>
  
  <p><strong>UPDATE:</strong>
  Finally found mistake in my validation rule.
  It should look like</p>
  
  <pre><code>return Validator::make($data, [
      'branches'         =&gt; 'array',
      'branches.*.*'       =&gt; 'filled|max:255'
      ]);
  </code></pre>
  
  <p>since input array is array of arrays. Now filled rule works as expected with my input data.</p>