title: Laravel validation array, access to element on validation?
body: <p>I have an array of elements that i want to validate, this array have this form</p>
  
  <pre><code>{
      "slugs" : {
          1 : "prueba",
          2 : "test"
  }
  </code></pre>
  
  <p>Slugs is the input <code>&lt;input name="slugs[{{ $lang-&gt;id }}]"&gt;</code> and the numbers are the id of the language <code>1 = spanish / 2 = english</code>.</p>
  
  <p>What i want is to validate these field uniqueness, in a form request like this</p>
  
  <pre><code>public function rules()
  {
      $rules = [
          //
          'slugs.*' =&gt; Rule::unique('translation_entries')-&gt;where(function($query) {
              //here i want to access the * that represent the lang id
              //like this $query-&gt;where('lang_id','=',$query-&gt;*);
          })
      ];
  }
  </code></pre>
  
  <p>can i access the index <code>*</code> inside the unique Rule class?</p>