TKK_E32230487/routes/web.php

36 lines
1.2 KiB
PHP

<?php
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\UserProfileController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return redirect()->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';