gwyneorge wrote a reply+100 XP
2mos ago
worked for me. For Firefox only.
For a universal solution is adding the headers both in the login route and the redirect to home
Route::get('/login', function () {
return response()
->view('auth.login')
->header('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0')
->header('Pragma', 'no-cache');
})->middleware('guest')->name('login');;
Also it needs to never have cached the page. If you test it while your browser has cached the logic route it will never work. Just go to a new tab.
gwyneorge liked a comment+100 XP
2mos ago
You need to pass an array to it I guess
Route::group(['namespace' => 'Admin', 'prefix' => 'admin', 'middleware' => ['auth.basic', 'auth.admin']], function() {});
If that doesn't work you have to split them I guess
Route::group(['middleware' => 'auth.basic'], function () {
Route::group(['namespace' => 'Admin', 'prefix' => 'admin', 'middleware' => 'auth.admin'], function() {
});
});