🔄 Replace ilike/like with whereLike and orWhereLike across views and remove macros for cleaner, driver-agnostic querying

This commit is contained in:
HolgerHatGarKeineNode
2026-06-14 01:43:34 +02:00
parent f93190f029
commit ac1abc4435
7 changed files with 9 additions and 26 deletions
@@ -32,7 +32,7 @@ class extends Component {
return [
'services' => SelfHostedService::query()
->with('createdBy')
->when($this->search, fn($q) => $q->where('name', 'ilike', '%'.$this->search.'%'))
->when($this->search, fn($q) => $q->whereLike('name', '%'.$this->search.'%'))
->when($this->typeFilter, fn($q) => $q->where('type', $this->typeFilter))
->orderBy('name')
->paginate(15),