Menu

## EmailVerificationController extends Controller
in package

EmailVerificationController.php : 20

Email verification controller.

Handles confirming a user's email address using a verification token and redirects users to the appropriate route after verification.

### Table of Contents

#### Methods

emailverification() : RedirectResponse|null
  Verify a user's email using the provided token.

### Methods

#### emailverification()

EmailVerificationController.php : 32

Verify a user's email using the provided token.

`public emailverification(string $token) : RedirectResponse|null`

Searches for a user with the matching `email_verification_code` and, if found, marks the user's `email_verified` flag and `email_verified_at` timestamp. Redirects to `/home` if an authenticated user is present, otherwise to `login`.

##### Parameters

$token : string

  Verification token from the email

##### Return values

RedirectResponse|null —

Redirect on success, null if token not found

## Search results