title: Laravel File Manager 404 error on Laravel 6
body: <p>I've installed the <a href="https://unisharp.github.io/laravel-filemanager/integration" rel="nofollow noreferrer">Uni Sharp File Manager</a> for my laravel app with tinymce text editor. </p>
  
  <p>I've followed each and every step of the installation guide and have copied the code snippet from the instructions of the package.</p>
  
  <p>The text editor loads successfully.<a href="https://i.stack.imgur.com/K9Lpr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K9Lpr.png" alt="enter image description here"></a></p>
  
  <p>But when I click the file manager button (circled in red) a pop up window opens and loads my 404 error page.</p>
  
  <p>My resource routes are only available to <code>auth</code> middleware:</p>
  
  <pre><code>Route::prefix('manage')-&gt;group(function () {
     Auth::routes(['register' =&gt; false]);
  
      Route::middleware('auth')-&gt;group(function () {
              Route::resource('post', 'PostController');
      });
  });
  </code></pre>
  
  <p>Also checked route list it gives laravel file manager has the following middleware:</p>
  
  <pre><code> | web,auth,UniSharp\LaravelFilemanager\Middlewares\CreateDefaultFolder,UniSharp\LaravelFilemanager\Middlewares\MultiUser |
  </code></pre>
  
  <p>Just checked in console I'm getting this error:</p>
  
  <p><code>tinymce.min.js:2 
  GET https://upscaleadventures.com/laravel-filemanager?field_name=mceu_49-inp&amp;type=Images 404</code></p>
  
  <p>Though I've published the vendor files and config files.</p>
  
  <p>lfm.php file contents:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;?php
  
  /*
  |--------------------------------------------------------------------------
  | Documentation for this config :
  |--------------------------------------------------------------------------
  | online  =&gt; http://unisharp.github.io/laravel-filemanager/config
  | offline =&gt; vendor/unisharp/laravel-filemanager/docs/config.md
   */
  
  return [
      /*
      |--------------------------------------------------------------------------
      | Routing
      |--------------------------------------------------------------------------
       */
  
      'use_package_routes'       =&gt; true,
  
      /*
      |--------------------------------------------------------------------------
      | Shared folder / Private folder
      |--------------------------------------------------------------------------
      |
      | If both options are set to false, then shared folder will be activated.
      |
       */
  
      'allow_private_folder'     =&gt; true,
  
      // 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.
      'private_folder_name'      =&gt; UniSharp\LaravelFilemanager\Handlers\ConfigHandler::class,
  
      'allow_shared_folder'      =&gt; true,
  
      'shared_folder_name'       =&gt; 'shares',
  
      /*
      |--------------------------------------------------------------------------
      | Folder Names
      |--------------------------------------------------------------------------
       */
  
      '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,
  
      // 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,
  
      'thumb_folder_name'        =&gt; 'thumbs',
  
      // Create thumbnails automatically only for listed types.
      'raster_mimetypes'         =&gt; [
          'image/jpeg',
          'image/pjpeg',
          'image/png',
      ],
  
      'thumb_img_width'          =&gt; 200, // px
  
      'thumb_img_height'         =&gt; 200, // px
  
      /*
      |--------------------------------------------------------------------------
      | 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',
      ],
  
      /*
      |--------------------------------------------------------------------------
      | 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>
  </div>
  </div>
  </p>