title: Laravel File Manager not load file list
body: <p>I have problem with Laravel File Manager.</p>
  
  <p>I am very beginner in Laravel.</p>
  
  <p>I have this component in my project (Laravel 5.8):</p>
  
  <p>UniSharp/laravel-filemanager</p>
  
  <pre><code>&lt;textarea id="qqq1" name="article-ckeditor" class="ckeditor"&gt;&lt;/textarea&gt;
  &lt;textarea id="qqq2" name="article-ckeditor" class="ckeditor"&gt;&lt;/textarea&gt;
  &lt;script src="http://test.test/vendor/unisharp/laravel-ckeditor/ckeditor.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              $(".ckeditor").each(function () {
                  CKEDITOR.replace( $(this).attr('id'), {
  
                      filebrowserImageBrowseUrl: 'http://test.test/cms/laravel-filemanager?type=Images',
                      filebrowserImageUploadUrl: 'http://test.test/cms/laravel-filemanager/upload?type=Images&amp;amp;_token=',
                      filebrowserBrowseUrl: 'http://test.test/cms/laravel-filemanager?type=Files',
                      filebrowserUploadUrl: 'http://test.test/cms/laravel-filemanager/upload?type=Files&amp;amp;_token=',
                      height: 800
                  });
              });
  </code></pre>
  
  <p>When I open uploader I have path:</p>
  
  <pre><code>http://test.test/cms/laravel-filemanager?type=Images&amp;CKEditor=qqq1&amp;CKEditorFuncNum=1&amp;langCode=pl
  </code></pre>
  
  <p>my route file (web.php):</p>
  
  <pre><code>Route::get('cms/laravel-filemanager', '\UniSharp\LaravelFilemanager\Controllers\LfmController@show');
      Route::post('cms/laravel-filemanager/upload', '\UniSharp\LaravelFilemanager\Controllers\UploadController@upload');
  </code></pre>
  
  <p>My lfm.php:</p>
  
  <pre><code>&lt;?php
  
  /*
  
  
  return [
      /*
      |--------------------------------------------------------------------------
      | Routing
      |--------------------------------------------------------------------------
       */
  
      'use_package_routes'       =&gt; true,
  
      // // Use relative paths (without domain)
      // 'relative_paths'           =&gt; false,
  
      /*
      |--------------------------------------------------------------------------
      | Multi-User Mode
      |--------------------------------------------------------------------------
       */
  
      'allow_multi_user'         =&gt; true,
  
      'allow_share_folder'       =&gt; true,
  
      /*
      |--------------------------------------------------------------------------
      | Folder Names
      |--------------------------------------------------------------------------
       */
  
      // Flexible way to customize client folders accessibility
      // If you want to customize client folders, publish tag="lfm_handler"
      // Then you can rewrite userField function in App\Handler\ConfigHandler class
      // And set 'user_field' to App\Handler\ConfigHandler::class
      // Ex: The private folder of user will be named as the user id.
      'user_folder_name'         =&gt; UniSharp\LaravelFilemanager\Handlers\ConfigHandler::class,
  
      'shared_folder_name'       =&gt; 'shares',
  
      'thumb_folder_name'        =&gt; 'thumbs',
  
      'folder_categories'        =&gt; [
          'file'  =&gt; [
              'folder_name'  =&gt; 'files',
              'startup_view' =&gt; 'grid',
              'max_size'     =&gt; 50000, // size in KB
              'valid_mime'   =&gt; [
                  'image/jpeg',
                  'image/pjpeg',
                  'image/png',
                  'image/gif',
                  'image/svg+xml',
              ],
          ],
          'image' =&gt; [
              'folder_name'  =&gt; 'photos',
              'startup_view' =&gt; 'list',
              'max_size'     =&gt; 50000, // size in KB
              'valid_mime'   =&gt; [
                  'image/jpeg',
                  'image/pjpeg',
                  'image/png',
                  'image/gif',
                  'image/svg+xml',
                  'application/pdf',
                  'text/plain',
              ],
          ],
      ],
  
      /*
      |--------------------------------------------------------------------------
      | Upload / Validation
      |--------------------------------------------------------------------------
       */
  
      'disk'                     =&gt; 'public',
  
      'rename_file'              =&gt; false,
  
      'alphanumeric_filename'    =&gt; false,
  
      'alphanumeric_directory'   =&gt; false,
  
      'should_validate_size'     =&gt; false,
  
      'should_validate_mime'     =&gt; false,
  
      // permissions to be set when create a new folder or when it creates automatically with thumbnails
      'create_folder_mode'       =&gt; 0755,
  
      // permissions to be set on file upload.
      'create_file_mode'         =&gt; 0644,
  
      // If true, it will attempt to chmod the file after upload
      'should_change_file_mode'  =&gt; true,
  
      // behavior on files with identical name
      // setting it to true cause old file replace with new one
      // setting it to false show `error-file-exist` error and stop upload
      'over_write_on_duplicate'  =&gt; false,
  
      /*
      |--------------------------------------------------------------------------
      | Thumbnail
      |--------------------------------------------------------------------------
       */
  
      // If true, image thumbnails would be created during upload
      'should_create_thumbnails' =&gt; true,
  
      // Create thumbnails automatically only for listed types.
      'raster_mimetypes'         =&gt; [
          'image/jpeg',
          'image/pjpeg',
          'image/png',
      ],
  
      'thumb_img_width'          =&gt; 200,
  
      'thumb_img_height'         =&gt; 200,
  
      /*
      |--------------------------------------------------------------------------
      | jQuery UI options
      |--------------------------------------------------------------------------
       */
  
      'resize_aspectRatio'       =&gt; false,
  
      'resize_containment'       =&gt; true,
  
      /*
      |--------------------------------------------------------------------------
      | File Extension Information
      |--------------------------------------------------------------------------
       */
  
      'file_type_array'          =&gt; [
          'pdf'  =&gt; 'Adobe Acrobat',
          'doc'  =&gt; 'Microsoft Word',
          'docx' =&gt; 'Microsoft Word',
          'xls'  =&gt; 'Microsoft Excel',
          'xlsx' =&gt; 'Microsoft Excel',
          'zip'  =&gt; 'Archive',
          'gif'  =&gt; 'GIF Image',
          'jpg'  =&gt; 'JPEG Image',
          'jpeg' =&gt; 'JPEG Image',
          'png'  =&gt; 'PNG Image',
          'ppt'  =&gt; 'Microsoft PowerPoint',
          'pptx' =&gt; 'Microsoft PowerPoint',
      ],
  
      'file_icon_array'          =&gt; [
          'pdf'  =&gt; 'fa-file-pdf-o',
          'doc'  =&gt; 'fa-file-word-o',
          'docx' =&gt; 'fa-file-word-o',
          'xls'  =&gt; 'fa-file-excel-o',
          'xlsx' =&gt; 'fa-file-excel-o',
          'zip'  =&gt; 'fa-file-archive-o',
          'gif'  =&gt; 'fa-file-image-o',
          'jpg'  =&gt; 'fa-file-image-o',
          'jpeg' =&gt; 'fa-file-image-o',
          'png'  =&gt; 'fa-file-image-o',
          'ppt'  =&gt; 'fa-file-powerpoint-o',
          'pptx' =&gt; 'fa-file-powerpoint-o',
      ],
  
      /*
      |--------------------------------------------------------------------------
      | php.ini override
      |--------------------------------------------------------------------------
      |
      | These values override your php.ini settings before uploading files
      | Set these to false to ingnore and apply your php.ini settings
      |
      | Please note that the 'upload_max_filesize' &amp; 'post_max_size'
      | directives are not supported.
       */
      'php_ini_overrides'        =&gt; [
          'memory_limit' =&gt; '256M',
      ],
  ];
  </code></pre>
  
  <p>When I open Laravel File Manager from CkEditor I have this:</p>
  
  <p><a href="https://ibb.co/4txGhcQ" rel="nofollow noreferrer">https://ibb.co/4txGhcQ</a></p>
  
  <p>In console I have error:
  1. Failed to load resource: the server responded with a status of 404 (Not Found)
  <a href="http://test.test/cms/laravel-filemanager/folders?working_dir=&amp;type=Images&amp;_=1558341378662" rel="nofollow noreferrer">http://test.test/cms/laravel-filemanager/folders?working_dir=&amp;type=Images&amp;_=1558341378662</a></p>
  
  <ol start="2">
  <li>Failed to load resource: the server responded with a status of 404 (Not Found) <a href="http://test.test/cms/laravel-filemanager/folders?working_dir=&amp;type=Images&amp;_=1558341378662" rel="nofollow noreferrer">http://test.test/cms/laravel-filemanager/folders?working_dir=&amp;type=Images&amp;_=1558341378662</a></li>
  </ol>
  
  <p>When I copy to browser: 
  <a href="http://test.test/cms/laravel-filemanager-" rel="nofollow noreferrer">http://test.test/cms/laravel-filemanager-</a> I have this: 
  <a href="https://ibb.co/nb6GTSj" rel="nofollow noreferrer">https://ibb.co/nb6GTSj</a></p>
  
  <p>When I copy to browser: 
  <a href="http://test.test/cms/laravel-filemanager/folders?working_dir=&amp;type=Images&amp;_=1558341378662" rel="nofollow noreferrer">http://test.test/cms/laravel-filemanager/folders?working_dir=&amp;type=Images&amp;_=1558341378662</a></p>
  
  <p>i have 404 not found</p>
  
  <p>How repair this?</p>