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::get('/karyawan', [GeneralController::class, 'karyawan'])->name('karyawan'); Route::get('/absensi', [GeneralController::class, 'absensi'])->name('absensi'); Route::get('/setting-potong-gaji', [GeneralController::class, 'settingPotongGaji'])->name('setting.potongan.gaji'); Route::get('/data-gaji', [GeneralController::class, 'dataGaji'])->name('gaji'); Route::get('/slip-gaji', [GeneralController::class, 'slipGaji'])->name('slip.gaji'); Route::post('/logout', [AuthController::class, 'destroy'])->name('logout'); });