title: Lumen : How to display the image on a public folder?
body: <p>I want to display the image that stored in public folder on Lumen project.
  But I got 404 not found when try to display it in browser.</p>
  
  <p>I already create the asset url helper:</p>
  
  <pre><code>if (!function_exists('urlGenerator')) {
      /**
       * @return \Laravel\Lumen\Routing\UrlGenerator
       */
      function urlGenerator() {
          return new \Laravel\Lumen\Routing\UrlGenerator(app());
      }
  }
  
  if (!function_exists('asset')) {
      /**
       * @param $path
       * @param bool $secured
       *
       * @return string
       */
      function asset($path, $secured = false) {
          return urlGenerator()-&gt;asset($path, $secured);
      }
  }
  </code></pre>
  
  <p>and this is how I call the image URL :</p>
  
  <pre><code>asset('public/uploads/images/product/') . $product-&gt;image
  </code></pre>
  
  <p>why lumen referring to route when I try to call image in public folder ?</p>