public function getRelatedQueryName()
    {
        // we check if the queryname/ relatedName is set otherwise use we use the name of the model.
        if ($this->relation->relatedQueryName) {
            $name = $this->relation->relatedQueryName;
        } elseif ($this->relation->relatedName) {
            $name = $this->relation->relatedName;
        } else {
            $name = $this->scopeModel->getMeta()->getModelName();
        }

        return strtolower($name);
    }