title: Retrieve all files name from the request in Laravel
body: <p>This should be easy, but I can't get it to work. I have a file input that can upload multiple files.</p>
  <pre><code>&lt;input type=&quot;file&quot; class=&quot;input&quot; name=&quot;images[]&quot; multiple&gt;
  </code></pre>
  <p>When I use <code>dd($request-&gt;images),</code> I get an array of the <code>UploadedFile</code> class containing all the files in the request. See picture below:</p>
  <p><a href="https://i.stack.imgur.com/uJk7H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uJk7H.png" alt="Uploaded class array" /></a></p>
  <p>Inside one of them, it looks like this:</p>
  <p><a href="https://i.stack.imgur.com/sOKXz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sOKXz.png" alt="Uploaded file info" /></a></p>
  <p>I want to get the names only. As you can see in the above picture, there is a property called <code>originalName</code> with the file name <code>gomez.jpg.</code> How can I get all those names from the request?</p>
  <p>Thanks.</p>