public function getOrFail()
    {
        $model = $this->get();

        if (is_null($model)) {
            throw new ParentModelNotFoundException($this->parentClass, $this->child->getParentId());
        }

        return $model;
    }
public function getOrFail()
    {
        $model = $this->get();

        if (is_null($model)) {
            throw new ParentModelNotFoundException($this->parentClass, $this->child->getParentId());
        }

        return $model;
    }
Return parent model.

@throws ParentModelNotFoundException
@return ElasticsearchModel