src/HasRelationships.php
public function hasOneDeep($related, array $through, array $foreignKeys = [], array $localKeys = [])
    {
        return $this->newHasOneDeep(...$this->hasOneOrManyDeep($related, $through, $foreignKeys, $localKeys));
    }
public function hasOneDeep($related, array $through, array $foreignKeys = [], array $localKeys = [])
    {
        return $this->newHasOneDeep(...$this->hasOneOrManyDeep($related, $through, $foreignKeys, $localKeys));
    }
public function hasOneDeep ( $ related , array $ through , array $ foreignKeys = [ ] , array $ localKeys = [ ] ) { return $ this -> newHasOneDeep ( ... $ this -> hasOneOrManyDeep ( $ related , $ through , $ foreignKeys , $ localKeys ) ) ; }
Define a has-one-deep relationship.

@param  string  $related
@param  array  $through
@param  array  $foreignKeys
@param  array  $localKeys
@return \Staudenmeir\EloquentHasManyDeep\HasOneDeep
Define a has - one - deep relationship .