code: public static function user()
      {
          if(!static::$user and static::$factory) {
              $id = static::provider()->get('id');
              static::$user = call_user_func(static::$factory, $id);
          }
  
          return static::$user;
      }
docs: Get user object
  
  @return object