barryvdh / laravel-elfinder

elFinder bundle for Laravel
738 stars 169 forks source link

New problem with auth middleware #328

Open sunshineflower10 opened 5 months ago

sunshineflower10 commented 5 months ago

Hi,

it seems that this part stopped working with the last few updates. It doesn't work on Laravel 8 and on Laravel 10. It works fine with 'auth' setting in all our projects that were NOT updated after 28th of Jan 2024 (we even have some 5.4 and 5.7), but the newly updated ones can't take 'auth' as middleware item.

'route' => [ 'prefix' => 'elfinder', 'middleware' => ['auth', 'web'], ],

When I remove 'auth' from array, and leave 'web' it works fine, I tried leaving only 'auth' in array but it didn't help. I also tried to add prefix admin/elfinder (like I saw you were using in some examples) but it doesn't work.

What to do? Is there a way to debug?