title: Laravel 5 not loading images in subfolder
body: <p>I'm looking for the solution of an error in my laravel 5 project. I have my project in public_html folder, so my project is working on good except the images that I have in a subfolder.</p>
  
  <p>This is my project structure:</p>
  
  <ul>
  <li>root
  <ul>
  <li>laravel</li>
  <li>public_html
  <ul>
  <li>index.php</li>
  <li>images
  <ul>
  <li>users
  <ul>
  <li>default.jpg</li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>I've got a main template called workspace.blade.php, in script tag I've got a js variable to refer my project folder image:</p>
  
  <pre><code>&lt;!-- Scripts --&gt;
      &lt;script type="text/javascript"&gt;
          var Url = '{{ URL::asset('/'). Lang::getLocale() }}/';
          var resourcesUrl = Url + 'resources/';
          var imagesUrl = '{{ URL::asset('images') }}';
          var jsUrl = '{{ URL::asset('js/') }}';
      &lt;/script&gt;
  </code></pre>
  
  <p>So in a EJS Javascript template I am printing my image:</p>
  
  <pre><code>&lt;img src="&lt;%= imagesUrl + '/users/default.jpg' %&gt;"&gt;
  </code></pre>
  
  <p>But the browser console always show me the following error:</p>
  
  <pre><code>GET http://mydomain.com.co/users/default.jpg 404 (Not Found)
  </code></pre>
  
  <p>If I try to load an image from "images/" folder, it works good, but If I try to load an image inside of subfolder from images like "images/users/" it doesn't work anymore.</p>
  
  <p>I've printed the url directly, but it happens nothing. The wrong is laravel redirects the url to route in route collection and it throws an error of routing.</p>
  
  <p>I don't know if I must modify my .htaccess file, but this is it:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  &lt;IfModule mod_negotiation.c&gt;
      Options -MultiViews
  &lt;/IfModule&gt;
  
  RewriteEngine On
  
  # Redirect Trailing Slashes...
  RewriteRule ^(.*)/$ /$1 [L,R=301]
  
  # Handle Front Controller...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L]
  </code></pre>
  
  <p></p>
  
  <p>Thanks for help me!</p>