public function getUser() {
        $session = $this->session_manager->session;

        if ($session && !$this->user) {
            $user_id = $session->get(Auth::getName());

            if ($user_id && is_null($this->user)) {
                $user_model = Config::get('auth.providers.users.model');

                if ($user_model) {
                    $this->user = $user_model::find($user_id);
                }
            } else {
                $this->user = null;
            }
        }

        return $this->user;
    }
public function getUser() {
        $session = $this->session_manager->session;

        if ($session && !$this->user) {
            $user_id = $session->get(Auth::getName());

            if ($user_id && is_null($this->user)) {
                $user_model = Config::get('auth.providers.users.model');

                if ($user_model) {
                    $this->user = $user_model::find($user_id);
                }
            } else {
                $this->user = null;
            }
        }

        return $this->user;
    }
public function getUser ( ) { $ session = $ this -> session_manager -> session ; if ( $ session && ! $ this -> user ) { $ user_id = $ session -> get ( Auth :: getName ( ) ) ; if ( $ user_id && is_null ( $ this -> user ) ) { $ user_model = Config :: get ( 'auth.providers.users.model' ) ; if ( $ user_model ) { $ this -> user = $ user_model :: find ( $ user_id ) ; } } else { $ this -> user = null ; } } return $ this -> user ; }
Hooks in the user getter.

@return mixed
Hooks in the user getter .