public function authenticated(Request $request, Contracts\RequiresEmailVerification $user)
    {
        if (config('verification.verify') && !$user->isUserEmailVerified()) {
            Auth::guard($this->getGuard())->logout();

            return redirect($this->verificationRedirectPath());
        }

        return redirect()->intended($this->redirectPath());
    }
public function authenticated(Request $request, Contracts\RequiresEmailVerification $user)
    {
        if (config('verification.verify') && !$user->isUserEmailVerified()) {
            Auth::guard($this->getGuard())->logout();

            return redirect($this->verificationRedirectPath());
        }

        return redirect()->intended($this->redirectPath());
    }
public function authenticated ( Request $ request , Contracts \ RequiresEmailVerification $ user ) { if ( config ( 'verification.verify' ) && ! $ user -> isUserEmailVerified ( ) ) { Auth :: guard ( $ this -> getGuard ( ) ) -> logout ( ) ; return redirect ( $ this -> verificationRedirectPath ( ) ) ; } return redirect ( ) -> intended ( $ this -> redirectPath ( ) ) ; }
Check if user is verified or not.

@param \Illuminate\Http\Request $request
@param \Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user
@return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
Check if user is verified or not .