Laravel - Email Verification - Protecting Routes

Route middleware may be used to only allow verified users to access a given route. Laravel ships with a verified middleware, which references the Illuminate\Auth\Middleware\EnsureEmailIsVerified class. Since this middleware is already registered in your application's HTTP kernel, all you need to do is attach the middleware to a route definition:

    
    Route::get('/profile', function () {
        // Only verified users may access this route...
    })->middleware('verified');
	

If an unverified user attempts to access a route that has been assigned this middleware, they will automatically be redirected to the verification.notice named route.