protected getHasRelationQuery ( string $relation ) : Illuminate\Database\Eloquent\Relations\Relation | ||
$relation | string | |
return | Illuminate\Database\Eloquent\Relations\Relation |
protected function getHasRelationQuery($relation)
{
return Relation::noConstraints(function () use($relation) {
return $this->getModel()->{$relation}();
});
}