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