title: laravel: how to display the assets that are inside the Public folder
body: <p>On the server (shared-hosting) all the assets that are inside the <strong>public</strong> folder are not displayed. i.e.</p>
  
  <pre><code>&lt;img src="{{asset($painting-&gt;file)}}" &gt;
  </code></pre>
  
  <p>output this </p>
  
  <pre><code>&lt;img src="http://subdir.example.com/uploads/awJ4o8_miro1.jpg" &gt;
  </code></pre>
  
  <p>it supposed to have a <strong>public</strong> folder </p>
  
  <pre><code>http://subdir.example.com/public/uploads/awJ4o8_miro1.jpg
  </code></pre>
  
  <p>On my Public_html folder I have this folder structure</p>
  
  <pre><code>PUBLIC_HTML
  ├───app
  ├───bootstrap
  ├───cgi-bin
  ├───config
  ├───database
  ├───public
  │   ├───css
  │   ├───img
  │   ├───js
  │   ├───uploads
  │   └───videos
  │   .htaccess(file)
  │   .index.php(file)
  ├───resources
  ├───storage
  └───tests
  └   .htaccess(file)
  </code></pre>
  
  <p>both of the <strong>.htaccess</strong> file is like this file </p>
  
  <pre><code>DirectoryIndex public/index.php
  &lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews
      &lt;/IfModule&gt;
  
      RewriteEngine On
  
      # Redirect Trailing Slashes If Not A Folder...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)/$ /$1 [L,R=301]
  
      # Handle Front Controller...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ public/index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>permissions</p>
  
  <p><a href="https://i.stack.imgur.com/d14Ld.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d14Ld.jpg" alt="enter image description here"></a></p>
  
  <p>So my questions is how can I set my configuration (.htaccess) so that I can display my assets on the shared-hosting site.</p>