private function attribute($key)
    {
        if ($this->attributes === null) {
            $this->attributes = session('_auth', []);
            if (empty($this->attributes)) {
                $this->loadPrincipalFromRememberMeCookie();
            }
        }

        return isset($this->attributes[$key]) ? $this->attributes[$key] : null;
    }
private function attribute($key)
    {
        if ($this->attributes === null) {
            $this->attributes = session('_auth', []);
            if (empty($this->attributes)) {
                $this->loadPrincipalFromRememberMeCookie();
            }
        }

        return isset($this->attributes[$key]) ? $this->attributes[$key] : null;
    }
private function attribute ( $ key ) { if ( $ this -> attributes === null ) { $ this -> attributes = session ( '_auth' , [ ] ) ; if ( empty ( $ this -> attributes ) ) { $ this -> loadPrincipalFromRememberMeCookie ( ) ; } } return isset ( $ this -> attributes [ $ key ] ) ? $ this -> attributes [ $ key ] : null ; }
Load the user attributes from the session and get the attribute.

@param string $key
@return mixed
Load the user attributes from the session and get the attribute .