protected function handleUserWasAuthenticated(Request $request, $throttles)
    {
        if ($throttles) {
            $this->clearLoginAttempts($request);
        }

        $user = auth()->user();

        if ($user instanceof User && $user->adldapUser instanceof AdldapUser) {
            $this->handleLdapUserWasAuthenticated($user, $user->adldapUser);
        }

        flash()->success('Success!', "You're logged in!");

        return redirect()->intended($this->redirectPath());
    }
protected function handleUserWasAuthenticated(Request $request, $throttles)
    {
        if ($throttles) {
            $this->clearLoginAttempts($request);
        }

        $user = auth()->user();

        if ($user instanceof User && $user->adldapUser instanceof AdldapUser) {
            $this->handleLdapUserWasAuthenticated($user, $user->adldapUser);
        }

        flash()->success('Success!', "You're logged in!");

        return redirect()->intended($this->redirectPath());
    }
protected function handleUserWasAuthenticated ( Request $ request , $ throttles ) { if ( $ throttles ) { $ this -> clearLoginAttempts ( $ request ) ; } $ user = auth ( ) -> user ( ) ; if ( $ user instanceof User && $ user -> adldapUser instanceof AdldapUser ) { $ this -> handleLdapUserWasAuthenticated ( $ user , $ user -> adldapUser ) ; } flash ( ) -> success ( 'Success!' , "You're logged in!" ) ; return redirect ( ) -> intended ( $ this -> redirectPath ( ) ) ; }
Send the response after the user was authenticated.

@param \Illuminate\Http\Request $request
@param bool                     $throttles

@return \Illuminate\Http\Response
Send the response after the user was authenticated .