route("login"); }); Route::middleware([IsGuest::class])->group(function () { Route::get('/login', [AuthController::class, 'login'])->name('login'); Route::post('/login', [AuthController::class, 'store'])->name('login.store'); }); Route::middleware([IsSessionAuth::class])->group(function () { Route::get('/dashboard', [GeneralController::class, 'dashboard'])->name('dashboard'); Route::get('/jabatan', [GeneralController::class, 'jabatan'])->name('jabatan'); Route::post('/logout', [AuthController::class, 'destroy'])->name('logout'); });