How to Enable & Customize Laravel Email Verification Templates

Laravel framework provides with multiple built-in functions. One such feature is to enable and customize Laravel Email Verification Templates. Let us go through the main steps to do this.

Enable Email Templates – Edit auth.php

Laravel framework provides email verification by default. You should first open config/auth.php and set the verification option to true, as shown below.

'verification' => true,

Customize Email Verification Templates

You can customize email verification templates by built in Laravel functionalities, using the Artisan command given below.

php artisan vendor:publish --tag=laravel-mail

The command above will publish email verification views to the resources/views/vendor/mail directory. You can find the email.blade.php and verify.blade.php files here. These can help edit the email and email verification layout and content. We can edit these files as per our application’s design and layout.

Leave a Comment