46 lines
1.7 KiB
PHP
46 lines
1.7 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\Auth\AuthenticatedSessionController;
|
|
use App\Http\Controllers\Auth\PasswordResetLinkController;
|
|
use App\Http\Controllers\DashboardController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
Route::middleware('guest')->group(function () {
|
|
|
|
Route::name('auth.')->group(function () {
|
|
|
|
Route::controller(AuthenticatedSessionController::class)->group(function () {
|
|
Route::get('/', 'create')->name('login');
|
|
Route::post('/', 'store')->name('login_post');
|
|
});
|
|
|
|
Route::controller(PasswordResetLinkController::class)->group(function () {
|
|
Route::get('/forgot-password', 'create')->name('forgot_password');
|
|
Route::post('/reset-password', 'store')->name('reset_password');
|
|
|
|
Route::get('/validasi-lupa-password/{token}', 'validation')->name('validation_forgot_password');
|
|
Route::post('/validasi-lupa-password/{token}', 'update')->name('update_forgot_password');
|
|
});
|
|
});
|
|
});
|
|
|
|
Route::middleware('auth')->group(function () {
|
|
Route::post('/logout', [AuthenticatedSessionController::class, 'destroy'])->name('auth.logout');
|
|
|
|
Route::controller(DashboardController::class)->name('dashboard.')->group(function () {
|
|
Route::get('/dashboard-admin', 'admin')->name('admin');
|
|
Route::get('/dashboard-petugas', 'petugas')->name('petugas');
|
|
});
|
|
});
|