scripthost/routes/auth.php
Javier Feliz 01c8471ae9
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
Build & Push Docker Image to Registry / build (release) Successful in 4m34s
Fix
2025-07-22 22:09:59 -04:00

34 lines
1.1 KiB
PHP

<?php
use App\Http\Controllers\Auth\VerifyEmailController;
use App\Livewire\Auth\ConfirmPassword;
use App\Livewire\Auth\ForgotPassword;
use App\Livewire\Auth\Login;
use App\Livewire\Auth\Register;
use App\Livewire\Auth\ResetPassword;
use App\Livewire\Auth\VerifyEmail;
use App\Models\User;
use Illuminate\Support\Facades\Route;
Route::middleware('guest')->group(function () {
Route::get('login', Login::class)->name('login');
Route::get('register', Register::class)->name('register');
Route::get('forgot-password', ForgotPassword::class)->name('password.request');
Route::get('reset-password/{token}', ResetPassword::class)->name('password.reset');
});
Route::middleware('auth')->group(function () {
Route::get('verify-email', VerifyEmail::class)
->name('verification.notice');
Route::get('verify-email/{id}/{hash}', VerifyEmailController::class)
->middleware(['signed', 'throttle:6,1'])
->name('verification.verify');
Route::get('confirm-password', ConfirmPassword::class)
->name('password.confirm');
});
Route::post('logout', App\Livewire\Actions\Logout::class)
->name('logout');