public function authenticated(Request $request, $user)
    {
        if ($user->is_blocked || ! $user->is_activated) {
            if ($user->is_blocked) {
                $message = 'Your account is currently banned from accessing the site!';
            } else {
                $message = 'Your account is not yet activated!';
            }
            $this->guard()->logout();
            flash()->error($message);

            return redirect()->route('administrator.login')->withErrors($message);
        }

        return redirect()->intended($this->redirectPath);
    }
public function authenticated(Request $request, $user)
    {
        if ($user->is_blocked || ! $user->is_activated) {
            if ($user->is_blocked) {
                $message = 'Your account is currently banned from accessing the site!';
            } else {
                $message = 'Your account is not yet activated!';
            }
            $this->guard()->logout();
            flash()->error($message);

            return redirect()->route('administrator.login')->withErrors($message);
        }

        return redirect()->intended($this->redirectPath);
    }
public function authenticated ( Request $ request , $ user ) { if ( $ user -> is_blocked || ! $ user -> is_activated ) { if ( $ user -> is_blocked ) { $ message = 'Your account is currently banned from accessing the site!' ; } else { $ message = 'Your account is not yet activated!' ; } $ this -> guard ( ) -> logout ( ) ; flash ( ) -> error ( $ message ) ; return redirect ( ) -> route ( 'administrator.login' ) -> withErrors ( $ message ) ; } return redirect ( ) -> intended ( $ this -> redirectPath ) ; }
Handle event when the user was authenticated.

@param \Illuminate\Http\Request $request
@param mixed                    $user
@return \Illuminate\Http\RedirectResponse
Handle event when the user was authenticated .