name('login'); Route::post('/login', [AuthController::class, 'login']); Route::post('/logout', [AuthController::class, 'logout'])->name('logout'); Route::get('/', function () { return view('splash'); // tampilan splash screen Route::get('/dashboard', [DashboardController::class, 'index']) ->middleware('auth') ->name('dashboard'); });