mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-06-22 06:10:30 +00:00
🔄 Replace ilike/like with whereLike and orWhereLike across views and remove macros for cleaner, driver-agnostic querying
This commit is contained in:
@@ -40,7 +40,7 @@ class extends Component {
|
||||
$query->whereHas('city.country', fn($query) => $query->where('countries.code', $this->country))
|
||||
)
|
||||
->when($this->search, fn($query)
|
||||
=> $query->where('meetups.name', 'ilike', '%'.$this->search.'%'),
|
||||
=> $query->whereLike('meetups.name', '%'.$this->search.'%'),
|
||||
)
|
||||
->orderByDesc('has_future_events')
|
||||
->orderByRaw('next_event_start ASC NULLS LAST')
|
||||
|
||||
Reference in New Issue
Block a user