This commit is contained in:
NaggaDIM
2025-01-02 00:05:09 +03:00
parent 2d071320a3
commit 277a5d5a31
16 changed files with 297 additions and 397 deletions

View File

@@ -22,30 +22,30 @@ Route::middleware('guest')->group(function () {
Route::post('login', [AuthenticatedSessionController::class, 'store']);
Route::get('forgot-password', [PasswordResetLinkController::class, 'create'])
->name('password.request');
Route::post('forgot-password', [PasswordResetLinkController::class, 'store'])
->name('password.email');
Route::get('reset-password/{token}', [NewPasswordController::class, 'create'])
->name('password.reset');
Route::post('reset-password', [NewPasswordController::class, 'store'])
->name('password.store');
// Route::get('forgot-password', [PasswordResetLinkController::class, 'create'])
// ->name('password.request');
//
// Route::post('forgot-password', [PasswordResetLinkController::class, 'store'])
// ->name('password.email');
//
// Route::get('reset-password/{token}', [NewPasswordController::class, 'create'])
// ->name('password.reset');
//
// Route::post('reset-password', [NewPasswordController::class, 'store'])
// ->name('password.store');
});
Route::middleware('auth')->group(function () {
Route::get('verify-email', EmailVerificationPromptController::class)
->name('verification.notice');
Route::get('verify-email/{id}/{hash}', VerifyEmailController::class)
->middleware(['signed', 'throttle:6,1'])
->name('verification.verify');
Route::post('email/verification-notification', [EmailVerificationNotificationController::class, 'store'])
->middleware('throttle:6,1')
->name('verification.send');
// Route::get('verify-email', EmailVerificationPromptController::class)
// ->name('verification.notice');
//
// Route::get('verify-email/{id}/{hash}', VerifyEmailController::class)
// ->middleware(['signed', 'throttle:6,1'])
// ->name('verification.verify');
//
// Route::post('email/verification-notification', [EmailVerificationNotificationController::class, 'store'])
// ->middleware('throttle:6,1')
// ->name('verification.send');
Route::get('confirm-password', [ConfirmablePasswordController::class, 'show'])
->name('password.confirm');

View File

@@ -1,24 +1,20 @@
<?php
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\IndexController;
use App\Http\Controllers\NeedVerificationController;
use App\Http\Controllers\ProfileController;
use Illuminate\Foundation\Application;
use App\Http\Middleware\ProfileVerificationMiddleware;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
Route::get('/', function () {
return Inertia::render('Welcome', [
'canLogin' => Route::has('login'),
'canRegister' => Route::has('register'),
'laravelVersion' => Application::VERSION,
'phpVersion' => PHP_VERSION,
]);
});
Route::get('/', IndexController::class)->name('index');
Route::get('/dashboard', function () {
return Inertia::render('Dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');
Route::middleware(['auth', ProfileVerificationMiddleware::class])->group(function () {
Route::get('/need-verification', NeedVerificationController::class)->name('profile.need-verification');
Route::get('/dashboard', DashboardController::class)->name('dashboard');
Route::middleware('auth')->group(function () {
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');