title: Laravel 7 I cannot display my images on remote server but can locally
body: <p>I use a shared hosting and after pushing my site on it everything works fine except the fact that my images are not displayed. I must add that this works smoothly on the local laravel embedded server.
  Let's take example of the banner images ( a carrousel)</p>
  <p>First the filesystem configuration file</p>
  <pre><code>&lt;?php
  return [
      'default' =&gt; env('FILESYSTEM_DRIVER', 'local'),
      'cloud' =&gt; env('FILESYSTEM_CLOUD', 's3'),
  
      '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',
              /*added */
              'permissions' =&gt; [
                  'file' =&gt; [
                      'public' =&gt; 0664,
                      'private' =&gt; 0600,
                  ],
                  'dir' =&gt; [
                      'public' =&gt; 0775,
                      'private' =&gt; 0700,
                  ],
              ],
              /*end added*/
              'visibility' =&gt; 'public',
          ],
  
          's3' =&gt; [
              'driver' =&gt; 's3',
              'key' =&gt; env('AWS_ACCESS_KEY_ID'),
              'secret' =&gt; env('AWS_SECRET_ACCESS_KEY'),
              'region' =&gt; env('AWS_DEFAULT_REGION'),
              'bucket' =&gt; env('AWS_BUCKET'),
              'url' =&gt; env('AWS_URL'),
              'endpoint' =&gt; env('AWS_ENDPOINT'),
          ],
  
      ],
  
      'links' =&gt; [
          public_path('storage') =&gt; storage_path('app/public'),
      ],
  </code></pre>
  <p>As the image files come from an other app (symfony) on the same shared hosting I copied the files by command line into /storage/app/public/banner directory and not seeing them also into /public/storage/banner directory</p>
  <p>Here is my view</p>
  <pre><code> &lt;div id=&quot;option&quot; class=&quot;carousel carousel-fade container banner&quot; data-ride=&quot;carousel&quot; data-interval=&quot;9000&quot;&gt;
      &lt;div id=&quot;carouselExampleSlidesOnly&quot;
        class=&quot;carousel slide&quot;
        data-ride=&quot;carousel&quot;&gt;
        &lt;div class=&quot;carousel-inner&quot;&gt;
          &lt;div class=&quot;carousel-item active&quot;&gt;
            &lt;img class=&quot;d-block w-100&quot; src=&quot;&lt;?php echo asset('storage/banner/banner-001.jpg'); ?&gt;&quot; alt=&quot;First slide&quot; /&gt;
          &lt;/div&gt;
          &lt;div class=&quot;carousel-item&quot;&gt;
            &lt;img class=&quot;d-block w-100&quot; src=&quot;/storage/banner/banner-002.jpg&quot;  alt=&quot;Second slide&quot;/&gt;
          &lt;/div&gt;
          &lt;div class=&quot;carousel-item&quot;&gt;
            &lt;img class=&quot;d-block w-100&quot; src=&quot;/storage/banner/banner-003.jpg&quot; alt=&quot;Third slide&quot; /&gt;
          &lt;/div&gt;
          &lt;div class=&quot;carousel-item&quot;&gt;
            &lt;img class=&quot;d-block w-100&quot; src=&quot;/storage/banner/banner-004.jpg&quot; alt=&quot;Third slide&quot; /&gt;
          &lt;/div&gt;
          &lt;div class=&quot;carousel-item&quot;&gt;
            &lt;img class=&quot;d-block w-100&quot; src=&quot;/storage/banner/banner-005.jpg&quot; alt=&quot;Third slide&quot; /&gt;
          &lt;/div&gt;
          &lt;div class=&quot;carousel-item&quot;&gt;
            &lt;img class=&quot;d-block w-100&quot; src=&quot;/storage/banner/banner-006.jpg&quot; alt=&quot;Third slide&quot; /&gt;
          &lt;/div&gt;
          &lt;div class=&quot;carousel-item&quot;&gt;
            &lt;img class=&quot;d-block w-100&quot; src=&quot;/storage/banner/banner-007.jpg&quot; alt=&quot;Third slide&quot; /&gt;
          &lt;/div&gt;
         
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;?php echo asset('storage/banner/banner-001.jpg'); ?&gt;
  </code></pre>
  <p>I tried writing the url directly or using the asset helper but I dont'see any difference.</p>
  <p>To be comprehensive hereafter are the permissions of files and folders</p>
  <pre><code>denentza@fox [~/laravel.denentzat.fr]# ls -l public/storage
  total 16
  drwxr-x--- 4 denentza denentza 4096 14 sept. 07:16 ./
  drwxr-xr-x 9 denentza nobody   4096 14 sept. 07:39 ../
  drwxrwxr-x 2 denentza denentza 4096 14 sept. 07:08 banner/
  drwxr-x--- 3 denentza denentza 4096 13 sept. 18:03 photos/
  
  denentza@fox [~/laravel.denentzat.fr]# ls -l public/storage/banner
  total 632
  drwxrwxr-x 2 denentza denentza   4096 14 sept. 07:08 ./
  drwxr-x--- 4 denentza denentza   4096 14 sept. 07:16 ../
  -rw-rw-r-- 1 denentza denentza  68243 14 sept. 07:08 banner-001.jpg
  -rw-rw-r-- 1 denentza denentza 106837 14 sept. 07:08 banner-002.jpg
  -rw-rw-r-- 1 denentza denentza 121547 14 sept. 07:08 banner-003.jpg
  -rw-rw-r-- 1 denentza denentza  55213 14 sept. 07:08 banner-004.jpg
  -rw-rw-r-- 1 denentza denentza  78082 14 sept. 07:08 banner-005.jpg
  -rw-rw-r-- 1 denentza denentza  84133 14 sept. 07:08 banner-006.jpg
  -rw-rw-r-- 1 denentza denentza 110553 14 sept. 07:08 banner-007.jpg
  
  denentza@fox [~/laravel.denentzat.fr]# ls -l storage/app/public
  total 16
  drwxrwxr-x 3 denentza denentza 4096 14 sept. 08:03 ./
  drwxrwxr-x 4 denentza denentza 4096 13 sept. 17:16 ../
  drwxrwxr-x 2 denentza denentza 4096 14 sept. 08:03 banner/
  -rwxrwxr-x 1 denentza denentza   14 13 sept. 16:22 .gitignore*
  
  denentza@fox [~/laravel.denentzat.fr]# ls -l public/storage/banner
  total 632
  drwxrwxr-x 2 denentza denentza   4096 14 sept. 07:08 ./
  drwxr-x--- 4 denentza denentza   4096 14 sept. 07:16 ../
  -rw-rw-r-- 1 denentza denentza  68243 14 sept. 07:08 banner-001.jpg
  -rw-rw-r-- 1 denentza denentza 106837 14 sept. 07:08 banner-002.jpg
  -rw-rw-r-- 1 denentza denentza 121547 14 sept. 07:08 banner-003.jpg
  -rw-rw-r-- 1 denentza denentza  55213 14 sept. 07:08 banner-004.jpg
  -rw-rw-r-- 1 denentza denentza  78082 14 sept. 07:08 banner-005.jpg
  -rw-rw-r-- 1 denentza denentza  84133 14 sept. 07:08 banner-006.jpg
  -rw-rw-r-- 1 denentza denentza 110553 14 sept. 07:08 banner-007.jpg
  </code></pre>