title: PHP Laravel 8 photos are not showing
body: <p>The photos in <strong>Laravel 8</strong> are not showing in html &quot;the alternative text is showing instead&quot;.
  In windows file explorer, I found each photo as a <strong>folder</strong> with the name of the photo for example &quot;<strong>myphoto.jpg</strong>&quot; and inside this folder there is a &quot;<strong>.tmp</strong>&quot; file.
  the destination folder is &quot;<strong>uploads/posts</strong>&quot; and when I inspect the photo in the browser, the link is shown correctly.
  here's a link example of one photo: &quot;http://localhost/laravel/blog/uploads/posts/1657160399photo.jpg&quot;.</p>
  <p>and when I access it directly from the browser, I get &quot;404 Not Found&quot;.
  I tried to add the following code inside filesystems.php inside &quot;links&quot; but it didn't work as well, the code line is:</p>
  <pre><code>public_path('uploads/posts') =&gt; storage_path('app/uploads/posts')
  </code></pre>
  <p>and in the terminal I also executed the following command but to no avail:</p>
  <pre><code>php artisan storage:link
  </code></pre>
  <p>I'll put below some related code from <strong>filesystems.php</strong>:</p>
  <pre><code>'disks' =&gt; [
  
          'local' =&gt; [
              'driver' =&gt; 'local',
              'root' =&gt; storage_path('app'),
          ],
  
          'public' =&gt; [
              'driver' =&gt; 'local',
              'root' =&gt; storage_path('app/public'),
              'url' =&gt; env('APP_URL').'/storage',
              'visibility' =&gt; 'public',
          ],
  </code></pre>
  <p>and</p>
  <pre><code> 'links' =&gt; [
          public_path('storage') =&gt; storage_path('app/public'),
  
          //added by me
          public_path('uploads/posts') =&gt; storage_path('app/uploads/posts')
      
      ],
  </code></pre>
  <p>and one last note .. I used .htaccess in my root folder just to get rid of &quot;public&quot; from the link.. for example if I want to go to posts page I write :</p>
  <p>http://localhost/laravel/blog/posts</p>
  <p>insted of:
  http://localhost/laravel/blog/public/posts</p>
  <p>Thanks in advance.</p>