Laravel-Backpack / FileManager

Admin interface for files & folders, using elFinder.
Other
94 stars 21 forks source link

fix #11 - Route login not found by install laravel/ui #12

Closed mansourcodes closed 3 years ago

mansourcodes commented 3 years ago

I feel that this step needed to be mentioned to users because laravel/ui is no more installed by default

promatik commented 3 years ago

@mansourcodes I tried the installation, and it work. I think the problem on #11 was the 'auth' middleware, I don't have it, but if I add it I got the same error you did.

By default my elfinder.php config looks like this;

    'route' => [
        'prefix'     => config('backpack.base.route_prefix', 'admin').'/elfinder',
        'middleware' => ['web', config('backpack.base.middleware_key', 'admin')], //Set to null to disable middleware filter
    ],

The same as here: https://github.com/Laravel-Backpack/FileManager/blob/master/config/elfinder.php

mansourcodes commented 3 years ago

@promatik Great. this config work better and not using laravel/ui I think the problem started because I copied the elfinder original config not FileManager config. while installing elfinder from : https://github.com/barryvdh/laravel-elfinder#configuration

It's better to mention this on the README.md

Solved by Replacing config file

/config/elfinder.php with https://github.com/Laravel-Backpack/FileManager/blob/master/config/elfinder.php