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
The Routes should be protected with the verified middleware, and the User model should implement the Illuminate\Contracts\Auth\MustVerifyEmail contract
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.
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?
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.