auth.php 949 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. use App\Http\Controllers\Auth\VerifyEmailController;
  3. use Illuminate\Support\Facades\Route;
  4. use Livewire\Volt\Volt;
  5. Route::middleware('guest')->group(function () {
  6. Volt::route('register', 'pages.auth.register')
  7. ->name('register');
  8. Volt::route('login', 'pages.auth.login')
  9. ->name('login');
  10. Volt::route('forgot-password', 'pages.auth.forgot-password')
  11. ->name('password.request');
  12. Volt::route('reset-password/{token}', 'pages.auth.reset-password')
  13. ->name('password.reset');
  14. });
  15. Route::middleware('auth')->group(function () {
  16. Volt::route('verify-email', 'pages.auth.verify-email')
  17. ->name('verification.notice');
  18. Route::get('verify-email/{id}/{hash}', VerifyEmailController::class)
  19. ->middleware(['signed', 'throttle:6,1'])
  20. ->name('verification.verify');
  21. Volt::route('confirm-password', 'pages.auth.confirm-password')
  22. ->name('password.confirm');
  23. });