title: LARAVEL 7 - Image not showing after config:clear
body: <p>I'm working on Laravel 7 (using Laragon 4.0 on Windows 10), I have some file download and save from remote urls. Everything was working fine but I had to perform a &quot;php artisan config:clear&quot; to update mysql configuration and after that the images saved in storage/public folder are not served anymore.</p>
  <p>The files were there but just not served, then I deleted everything inside /storage/public folder, deleted the symlink inside /public folder to /storage (naturally performing &quot;php artisan storage:link&quot;) and populate again /storage/public with folders and file like I did previously. The folder structure is there, the files also but when I try to access them I get 404 error.</p>
  <p>I tried &quot;php artisan optimize:clear&quot; and every suggestion I found on stackoverflow but nothing seems to help me, I don't know where to look, please help me.</p>
  <p>Here is the code I use to download/save images:</p>
  <pre><code>        $url = $team[&quot;logo&quot;];
          $contents = file_get_contents($url);
          $name = substr($url, strrpos($url, '/') + 1);
          $file = 'public/team/logo/'. $name;
  
          Storage::put('team/logo/'. $name, $contents);
  </code></pre>
  <p>This is how I display images on the view:</p>
  <pre><code>&lt;img src=&quot;{{Storage::url($team-&gt;logo)}}&quot; style=&quot;max-width:50px&quot;&gt;
  </code></pre>
  <p>This is my public disk configuration on filesystems.php</p>
  <pre><code>        'public' =&gt; [
          'driver' =&gt; 'local',
          'root' =&gt; storage_path('app/public'),
          'url' =&gt; env('APP_URL').'/storage',
          'visibility' =&gt; 'public',
      ],
  </code></pre>