mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-06-17 16:40:31 +00:00
✨ 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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user