title: Laravel validator with a wildcard
body: <p>i want to make a laravel validator that validates the the fields inside an un-named array ( 0,1,2,3 ) that is inside an array</p>
  
  <p>so my array is like </p>
  
  <pre><code>array [ //the form data
    "items" =&gt; array:2 [ //the main array i want to validate
      0 =&gt; array:2 [ // the inner array that i want to validate its data
        "id" =&gt; "1"
        "quantity" =&gt; "1000"
       ]
      1 =&gt; array:2 [
       "id" =&gt; "1"
       "quantity" =&gt; "1000"
       ]
    // other fields of the form,
    ]
  
  ]
  </code></pre>
  
  <p>so what i want is something like </p>
  
  <pre><code>  $validator = Validator::make($request-&gt;all(), [
       'items.*.id' =&gt; 'required' //notice the star *
    ]);
  </code></pre>