Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ligonsker's avatar

How to enable Email verification with Breeze?

I can see Breeze creates file called verify-email.blade.php so I assume there is an option to make Breeze send email verification link before activating an account?

Is there a way to make breeze send this email and not immediately log the user in? Couldn't find anything in the docs

Or I should just start over with Jetstream?

0 likes
8 replies
Ligonsker's avatar

Update: NVM! I found out that I just needed to add implements MustVerifyEmail to the User model:

class User extends Authenticatable implements MustVerifyEmail
7 likes
tykus's avatar
tykus
Best Answer
Level 104

The Routes should be protected with the verified middleware, and the User model should implement the Illuminate\Contracts\Auth\MustVerifyEmail contract

8 likes
blackshtef's avatar

@tykus Thanks from me as well, this just solved my mail verification issue :)

1 like
waleednasie's avatar

Firstly, you need to install Laravel Breeze if you haven't already. Then, in your config/breeze.php file, you should find and set the verify_email option to true. This step is crucial as it enables the email verification process. Next, you'll need to customize the email verification link in resources/views/auth/verify-email.blade.php to match your application's domain. Additionally, you can personalize the email verification notification by editing the App\Notifications\VerifyEmail.php file. This customization allows you to align the email's appearance and content with your application's branding and user experience.

2 likes
coder618's avatar

To implement Email Verification in laravel 10.x do the following

Filename: app > Models > User.php

uncomment the following line: use Illuminate\Contracts\Auth\MustVerifyEmail;

add 'implements MustVerifyEmail' after Authenticatable text

Modify the following line : old : class User extends Authenticatable new : class User extends Authenticatable implements MustVerifyEmail

3 likes
internetbug256's avatar

Hello I am trying to enable email verification with Breeze, and I have performed all the above steps. However, after Breeze installation, I don't have any config/breeze.php file at all! Which is the process that creates such file?

I have breeze v1.29 installed on Laravel 10.x

1 like
AlexeyPlodenko's avatar

You need to dispatch the Registered event event(new Registered($user)); in the register method of the controller. Plus the instructions above. The rest is magic.

2 likes

Please or to participate in this conversation.