title: How to validate laravel array with custom request?
body: <p>How to validate with custom request, my request with an array key</p>
  
  <pre><code>$request = [
    'link_inc_characteristic_id' =&gt; $inc_char_id[$i],
    'value' =&gt; $value[$i],
    'created_by' =&gt; $created_by,
    'last_updated_by' =&gt; $last_updated_by,
  ];
  
  $this-&gt;validate($request, [
     'value['.$i.']' =&gt; 'max:30'
  ]);
  
  $linkIncCharacteristicValue = LinkIncCharacteristicValue::create($request);
  return Response::json($linkIncCharacteristicValue);
  </code></pre>
  
  <p>[EDIT] [CODE UPDATED]
  display error:</p>
  
  <blockquote>
    <p>Argument 1 passed to App\Http\Controllers\Controller::validate() must be an instance of Illuminate\Http\Request, array given,</p>
  </blockquote>