title: Laravel Request validation
body: <p>I hope you guys can help me.</p>
  
  <p>I have these file inputs in a form:</p>
  
  <pre><code>Select images: &lt;input type="file" name="images[][image]" multiple&gt;
  Select videos: &lt;input type="file" name="videos[][video]" multiple&gt;
  </code></pre>
  
  <p>And my goal is to force the user to upload an image if there is no video introduced. Possibilities: </p>
  
  <ul>
  <li>At least one image</li>
  <li>At least one video</li>
  <li>Any combination of images with
  videos</li>
  </ul>
  
  <p>What I want to avoid:</p>
  
  <ul>
  <li>No images and no videos</li>
  </ul>
  
  <p>But I'm confused about the validation I need to use in my controller. This is what I have for the moment:</p>
  
  <pre><code>$this-&gt;validate($request, [
      'images' =&gt; 'required_without_all:videos.*.video',
      'images.*.image' =&gt; 'image',
      'videos.*.video' =&gt; 'mimetypes:video/avi,video/mpeg,video/quicktime,video/mp4'
  ]);
  </code></pre>
  
  <p>But it is not working. I also tried (without success):</p>
  
  <pre><code>$this-&gt;validate($request, [
      'images.*.image' =&gt; 'image|required_without_all:videos.*.video',
      'videos.*.video' =&gt; 'mimetypes:video/avi,video/mpeg,video/quicktime,video/mp4'
  ]);
  </code></pre>
  
  <p>How can I achieve what I want using Laravel's validation? </p>
  
  <p>Thank you very much in advanced.</p>