title: Can't get Laravel-Filemanager to work in subfolder on remote server
body: <p>In my Laravel 5.7 site I use Ckeditor together with Laravel-Filemanager. After following all the installation instructions I got it to work fine locally. No problems att all. But I cannot get it to work in my remote web server.</p>
  
  <p>On the remote server I have placed the Laravel app in a subfolder 2 levels down from the webroot.</p>
  
  <p>In my blade template I have this (I have tried using both asset and url helpers in the option urls and both of them works locally):</p>
  
  <pre><code>&lt;script src="{{ asset('vendor/unisharp/laravel-ckeditor/ckeditor.js') }}"&gt;&lt;/script&gt;
  &lt;script&gt;
      var options = {
      filebrowserImageBrowseUrl: "{{ url('/laravel-filemanager?type=Images') }}",
      filebrowserImageUploadUrl: "{{ url('/laravel-filemanager/upload?type=Images&amp;_token=') }}"
  };
  &lt;/script&gt;
  &lt;script&gt;
      CKEDITOR.replace('editor1', options);
  &lt;/script&gt;
  </code></pre>
  
  <p>When I want to upload an image in my CKeditor by clicking the <code>Browse server</code> button in my local environment it works as it should and the URL looks like this in Laravel File Manager ('laravel/' being the webroot):</p>
  
  <pre><code>http://laravel/laravel-filemanager?type=Images&amp;CKEditor=editor1&amp;CKEditorFuncNum=0&amp;langCode=sv
  </code></pre>
  
  <p>When I do the same thing in my remote server the URL looks like this:</p>
  
  <pre><code>http://www.myremoteserver.com/subfolder1/subfolder2/public/laravel-filemanager?type=Images&amp;CKEditor=editor1&amp;CKEditorFuncNum=0&amp;langCode=sv
  </code></pre>
  
  <p>... <strong>and all I get is a 404.</strong> </p>
  
  <p>I have tried to clear route, config and site caches. I have also tried to copy the URL above in the remote environment and pasting it a new window without the /public/ part.</p>
  
  <p>Is there anyone out there that can guess what is going on? All help would be greatly appreciated.</p>