debug intern mistakes

This commit is contained in:
2025-02-26 16:02:16 +03:30
parent ef4a392586
commit 3028d6a3ee
6 changed files with 48 additions and 9 deletions

View File

@@ -66,7 +66,7 @@ class ApplyFilter
}
$relation = $this->filter->getRelation();
return $relation ? $this->applyFilterToRelation($relation) : $this->searchFilter->apply();
return method_exists($this->query->getModel(), $relation) ? $this->applyFilterToRelation($relation) : $this->searchFilter->apply();
}
protected function applyFilterToRelation(string $relation): Builder