mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-06-18 17:00:31 +00:00
🔄 Replace ilike/like with whereLike and orWhereLike across views and remove macros for cleaner, driver-agnostic querying
This commit is contained in:
@@ -29,8 +29,8 @@ class extends Component {
|
||||
])
|
||||
->when($this->search, fn($query)
|
||||
=> $query
|
||||
->where('name', 'ilike', '%'.$this->search.'%')
|
||||
->orWhere('description', 'ilike', '%'.$this->search.'%'),
|
||||
->whereLike('name', '%'.$this->search.'%')
|
||||
->orWhereLike('description', '%'.$this->search.'%'),
|
||||
)
|
||||
->whereHas('courseEvents.venue.city.country', fn($query) => $query->where('countries.code', $this->country))
|
||||
->orderByDesc('has_future_events')
|
||||
|
||||
Reference in New Issue
Block a user