Verify email with Fortify and Vue

The Vue starter kit already verifies email. The user model must implement MustVerifyEmail, and the resend form posts to Fortify.

For your AI agent

Copies a prompt. Paste it into the AI agent you already have open.

Read https://laravel-vuejs.space/fortify-email-verification-vue.md
The Vue starter kit already verifies email. The user model must implement MustVerifyEmail, and the resend form posts to Fortify.
Do not replace it with a Vue route that reads ?id= and marks the user verified.
Do not log the verification URL.
Show the diff. Do not commit.
On this page · 3 sections
  1. The fix
  2. What to avoid
  3. FAQ

People searching “Fortify email verification Vue” build a second verification controller. The Vue starter kit already has the pages. The Fortify guide is the login post. This page is the switch that actually sends the mail.

TL;DR

  • The Vue starter kit already verifies email.
  • The user model must implement MustVerifyEmail, and the resend form posts to Fortify.
  • Do not replace it with a Vue route that reads ?id= and marks the user verified.
  • Do not log the verification URL.

Who it's for: Laravel + Vue developers

Applies to: Laravel 13 · Vue 3

The fix#

In config/fortify.php, the feature list includes email verification. The user model has to implement the contract or Fortify will not send:

php
use Illuminate\Contracts\Auth\MustVerifyEmail;

class User extends Authenticatable implements MustVerifyEmail
{
    //
}

Routes that require a verified user use the verified middleware. A guest is sent to login. A user who has not clicked the link is sent to the verification notice.

The resend button is a POST. The kit page already does this. If you are adding it to another page:

typescript
form.post("/email/verification-notification");

The link in the email is signed. Do not replace it with a Vue route that reads ?id= and marks the user verified. That skips the hash Fortify checks.

What to avoid#

Gotcha

Do not log the verification URL. It signs the user in as verified when it is opened.

FAQ#

How do I verify email with Fortify and Vue?

The Vue starter kit already verifies email. The user model must implement MustVerifyEmail, and the resend form posts to Fortify.

What goes wrong with Fortify email verification Vue?

Many developers build a second verification controller. Do not replace it with a Vue route that reads ?id= and marks the user verified.

Found this useful?

Ask questions, share what you built.

Join thousands of Laravel and Vue developers in our Facebook group, or get new posts in your Telegram feed. Sharing this article helps too.

Keep reading

Newsletter

Get the best of Laravel & Vue, once a month.

One short email with new guides, release notes worth reading and hand-picked community links. No spam, unsubscribe any time.