mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-06-23 06:30:22 +00:00
🔄 Replace ilike/like with whereLike and orWhereLike across views and remove macros for cleaner, driver-agnostic querying
This commit is contained in:
@@ -25,7 +25,7 @@ class extends Component {
|
||||
return [
|
||||
'venues' => Venue::with(['city.country', 'createdBy'])
|
||||
->when($this->search, fn($query)
|
||||
=> $query->where('name', 'ilike', '%'.$this->search.'%'),
|
||||
=> $query->whereLike('name', '%'.$this->search.'%'),
|
||||
)
|
||||
->whereHas('city.country', fn($query) => $query->where('countries.code', $this->country))
|
||||
->orderBy('name')
|
||||
|
||||
Reference in New Issue
Block a user