route('login'); })->name('home'); /* |-------------------------------------------------------------------------- | Protected Routes (Harus Login) |-------------------------------------------------------------------------- */ Route::middleware(['auth'])->group(function () { Route::get('/dashboard', [UserProfileController::class,'index'])->name('dashboard'); Route::get('/input-data', function () { return view('input-data'); })->name('input-data'); Route::post('/input-data', [UserProfileController::class, 'store'])->name('input.store'); Route::get('/histori', [UserProfileController::class,'histori'])->name('histori'); // Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); // Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update'); // Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); }); require __DIR__.'/auth.php'; require __DIR__.'/settings.php';