app/Http/Controllers/Auth/LoginController.php
/**
     * Send the response after the user was authenticated.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Send the response after the user was authenticated.
Send the response after the user was authenticated .
protected function sendLoginResponse(Request $request)
    {
        $request->session()->regenerate();
        $this->guard()->user()->login_num += 1;
        $this->guard()->user()->last_login_ip = $request->getClientIp();
        $this->guard()->user()->last_login_time = date('Y-m-d H:i:s');
        $this->guard()->user()->save();
        $this->clearLoginAttempts($request);
        return $this->authenticated($request, $this->guard()->user())
            ?: redirect()->intended($this->redirectPath());
    }
protected function sendLoginResponse ( Request $ request ) { $ request -> session ( ) -> regenerate ( ) ; $ this -> guard ( ) -> user ( ) -> login_num += 1 ; $ this -> guard ( ) -> user ( ) -> last_login_ip = $ request -> getClientIp ( ) ; $ this -> guard ( ) -> user ( ) -> last_login_time = date ( 'Y-m-d H:i:s' ) ; $ this -> guard ( ) -> user ( ) -> save ( ) ; $ this -> clearLoginAttempts ( $ request ) ; return $ this -> authenticated ( $ request , $ this -> guard ( ) -> user ( ) ) ? : redirect ( ) -> intended ( $ this -> redirectPath ( ) ) ; }
Send the response after the user was authenticated.
Send the response after the user was authenticated .