title: Laravel generate a unique ID using Storage::put
body: <p>I use Laravel <code>Storage::putFile()</code> when I store uploaded files and I like the convenience of it's automatic unique file name and how it takes care of file extension. </p>
  
  <p>Now I want to get a file from a remote server (<code>file_get_contents($url)</code>) and store it like I did for uploaded files, but I don't find any equal method in the docs. </p>
  
  <p>In <a href="https://laravel.com/docs/5.5/filesystem#storing-files" rel="noreferrer">https://laravel.com/docs/5.5/filesystem#storing-files</a> in the <code>put</code> method, you have to specify the file name. </p>