title: Laravel Public url for storage files
body: <p>I want to retrieve public url for all the files stored using </p>
  
  <blockquote>
    <p>storage::putFile('public/spares');</p>
  </blockquote>
  
  <p>So, this is the issue I'm using </p>
  
  <blockquote>
    <p>storage::files('public/spares');</p>
  </blockquote>
  
  <p>but it provides this output from laravel storage directory</p>
  
  <pre><code>public/spares/image1.jpg
  public/spares/image2.jpg
  public/spares/image3.jpg
  </code></pre>
  
  <p>how can I get the public link for the above </p>
  
  <pre><code>http://localhost/laravel/public/storage/spares/image1.jpg
  http://localhost/laravel/public/storage/spares/image2.jpg
  http://localhost/laravel/public/storage/spares/image3.jpg
  </code></pre>
  
  <p>**Edit **</p>
  
  <p>Sending last modified data of files to view </p>
  
  <pre><code>$docs = File::files('storage/document');
  $lastmodified = [];
  foreach ($docs as $key =&gt; $value) {
     $docs[$key] = asset($value);
     $lastmodified[$key] = File::lastmodified($value);
  }
  return view('stock.document',compact('docs','lastmodified'));
  </code></pre>
  
  <p>Is this correct </p>