* @mixin \Illuminate\Database\Eloquent\Builder */ class HasOneThrough extends HasManyThrough { use SupportsDefaultModels; /** * Get the results of the relationship. * * @return mixed */ public function getResults() { return $this->first() ?: $this->getDefaultFor($this->farParent); } /** * Make a new related instance for the given model. * * @param \Illuminate\Database\Eloquent\Model $parent * @return \Illuminate\Database\Eloquent\Model * @psalm-return TRelatedModel */ public function newRelatedInstanceFor(Model $parent) { } }