Email verification on Account registration
In this article, we will cover on how to verify user’s email and activate the user account once they click on the account activation link sent in the email. So let's start... Step 1: Create new Model and Migration for verification We will be creating a new table in our database which will hold the verification token that is appended in the URL and sent to the users. Let’s begin by generating the required Model and Migration file. php artisan make:model VerifyUser -m The make:model command will create a new Model VerifyUser in the \App directory and -m flag will create a new migration file associated with the VerifyUser model with the table name verify_users. Now we can modify our verify_users migration file like this. public function up() { Schema::create('verify_users', function (Blueprint $table) { $table->integer('user_id'); $table->string('token'); $table->timestamps(); }); } Also,