Custom Email Verification in Laravel | Send email when register

In this tutorial I’m going to describe how to get email verification when someone register in laravel. Please follow some easy steps mentioned below.

First let’s go to install laravel project

👇 Step 2 — Database Configuration

Setup database with your installed laravel 8 project . lets go to .env folder and put database name and connect to database.

Next click on create

Next set up to mail trap for getting mail

Go to this URL — MailTrapio

Go to .env and put your mailtrap credentials

Now migrate the table

Now Create Auth

Step 5: Email Verification Setup

Go to App/user.php file and paste below code

Next go to Set-up Routes


Replace Auth:Routes to below code

Next go to HomeController.php file and paste below function code

Now set-up is completed run below code

Now page is look like this

Now you got successfully got verification email

Now also you’ll get email when register

Login successfully when you verify email

Thanks i hope its helpful for you….. if its working please hit comment and like 🙏🙏

Hi I am Amit Experienced Web Developer with a demonstrated history of working in the information technology and services industry.