Admin Login Redirect Setup
User Route::prefix('admin')->middleware('auth:admin')->group(function () { Route::get('/dashboard', function () { return view('admin.dashboard'); })->name('admin.dashboard'); Route::post('logout', [LoginController::class, 'destroy'])->name('admin.logout'); }); send user to admin login page if not logged in Assistant To redirect users to the admin login page if they are not authenticated, you can modify your `auth:admin` middleware and set up the appropriate logic in the `auth` configuration […]