LUBUS wrote a nice tutorial on how to add email verification in Laravel 5.3 app. This tutorial can be used for Laravel 5.4 as well.

Laravel email verification

Adding email verification process in your laravel 5.3 app step by step. First let’s initiate with an overview so we have an idea what is the actual process we are going to implement followed by the code and the steps.

Overview:

Create a user with a status of 0 (Zero) i.e. not verified initially

Store a random token with the user details on creation

Email the token to the user

Match the token & user id coming from mail with the database records

If matched set the user status to 1 i.e. verified