public function __get($key) { return $this->then(function ($result) use($key) { return $result->{$key}; }); }