_relation->getQuery($this->model::className())->$name(...$arguments); } else { call_user_func([$this, $name], ...$arguments); } return $this; } /** * @return array|null|Collection * @throws Exception */ public function get(): array|Collection|null { $key = $this->model::className() . '_' . $this->primaryId . '_' . $this->value; return $this->_relation->get($key); } }