/** * @param string $relation * @return \Notadd\Foundation\Database\Eloquent\Relations\Relation */ protected function getHasRelationQuery($relation) { return Relation::noConstraints(function () use($relation) { return $this->getModel()->{$relation}(); }); }