laravel redirect to email confirmation

  laravel, php

Why doesn’t it work?

use IlluminateSupportFacadesAuth;

public function __construct()
{
    if(Auth::check()){
         $this->middleware(['verified']);
    }
}

I want the user to be constantly redirected to the email confirmation page after authorization, until he confirms it. Auth :: check () function fails, how can this be done?
Laravel-8;

Source: Ask PHP

LEAVE A COMMENT