protected function getHasRelationQuery($relation) { return Relation::noConstraints(function () use($relation) { return $this->getModel()->{$relation}(); }); }