Laravel Elfinder redirects to homepage when using 'auth' middleware

I use https://github.com/barryvdh/laravel-elfinder and whenever I install middlewarein auththe config/elfinder.phpfile, I get redirected to the home page, but when I use middleware for NULL, elfinder opens perfectly.

How can I protect the elfinder route in laravel so that only an accessible user is allowed to open the file manager?

thank

+4
source share
1 answer

web config\elfinder.php.

,

'middleware' => "['auth', 'web']",

laravel 5.2 "web".

+6

Source: https://habr.com/ru/post/1629987/


All Articles