Add whereLike and orWhereLike macros for driver-agnostic case-insensitive searches

- 🔄 Replace `ilike`/`like` conditions with `whereLike` in API controllers and search tools for consistency.
- 🚀 Enhance query usability by ensuring cross-database compatibility (PostgreSQL and SQLite).
This commit is contained in:
HolgerHatGarKeineNode
2026-06-14 01:32:03 +02:00
parent 6239842b15
commit f93190f029
14 changed files with 42 additions and 28 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ class LibraryItem extends Model implements Feedable, HasMedia, Sortable
->latest('id');
if ($value) {
$query->where('name', 'ilike', "%{$value}%");
$query->whereLike('name', "%{$value}%");
}
return $query->get();