get(Relation::class); $relation->getQuery($this->name)->$name(...$arguments); return $this; } else { return $this->get(); } } /** * @param $name * @return mixed */ public function __get($name): mixed { if ($this->data === null) { $this->data = $this->get(); } return $this->data; } }