title: Using Laravel-Glide with public/uploads folder
body: <p>I'd like to use <a href="http://glide.thephpleague.com/" rel="nofollow noreferrer">Glide</a> for all my image sources.</p>
  
  <p>Following to <a href="http://glide.thephpleague.com/1.0/config/integrations/laravel/" rel="nofollow noreferrer">this instruction</a>, I can get an image at <code>http://myweb.dev/img/test.jpg?w=200&amp;filt=sepia</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/aL5GW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aL5GW.jpg" alt="enter image description here"></a></p>
  
  <p>Route:</p>
  
  <pre><code>Route::get('/img/{path}', 'ImageController@show')-&gt;where('path', '.*');
  </code></pre>
  
  <p>Controller: </p>
  
  <pre><code>namespace App\Http\Controllers;
  
  use Illuminate\Contracts\Filesystem\Filesystem;
  use League\Glide\Responses\LaravelResponseFactory;
  use League\Glide\ServerFactory;
  
  class ImageController extends Controller
  {
      public function show(Filesystem $filesystem, $path)
      {
          $server = ServerFactory::create([
              'response' =&gt; new LaravelResponseFactory(app('request')),
              'source' =&gt; $filesystem-&gt;getDriver(),
              'cache' =&gt; $filesystem-&gt;getDriver(),
              'cache_path_prefix' =&gt; '.cache',
              'base_url' =&gt; 'img',
          ]);
  
          return $server-&gt;getImageResponse($path, request()-&gt;all());
      }
  }
  </code></pre>
  
  <p>Since all my images are /public/uploads directory, I changed it as following.</p>
  
  <p>Route:</p>
  
  <pre><code>Route::get('uploads/{path}', 'ImageController@show')-&gt;where('path', '.*');
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>public function show(Filesystem $filesystem, $path)
  {
      $server = ServerFactory::create([
          'response' =&gt; new LaravelResponseFactory(app('request')),
          'source' =&gt; public_path(),
          'cache' =&gt; public_path(),
          'cache_path_prefix' =&gt; '.cache',
          'base_url' =&gt; 'uploads',
      ]);
  
      return $server-&gt;getImageResponse($path, request()-&gt;all());
  }
  </code></pre>
  
  <p>When I go to <a href="http://myweb.dev/uploads/test.jpg?w=200&amp;filt=sepia" rel="nofollow noreferrer">http://myweb.dev/uploads/test.jpg?w=200&amp;filt=sepia</a>, I get an image without any change nor any .cache directory is created.</p>
  
  <p>I tried <code>base_path()</code> and <code>/uploads</code> as well, but didn't work either. I am using uploads directory for elfinder.</p>
  
  <p>What am I doing wrong here?</p>
  
  <p><a href="https://i.stack.imgur.com/IqagX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IqagX.jpg" alt="enter image description here"></a></p>