Sometimes you would want to allow access only to users that have verified their email addresses.

In this case, you need to do simple coding.

  1. Enable the Email verification

config/fortify.php

Uncomment line 137

Features::emailVerification(),
  1. Prepare the user model

app/Models/User.php

Add additional use

use Illuminate\\Contracts\\Auth\\MustVerifyEmail;

and then the class declaration should be

class User extends **Authenticatable** implements **MustVerifyEmail**
  1. Protect the routes from unverified users

Ex, to protect all routes from the “WhatsBox” core module, you need to edit

modules/Wpbox/Routes/web.php

And add the 'verified’ middleware