mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-06-24 06:40:23 +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,9 +40,9 @@ class extends Component {
|
||||
fn($query) => $query->where('countries.code', $this->country))
|
||||
->when($this->search, fn($query)
|
||||
=> $query
|
||||
->where('name', 'ilike', '%'.$this->search.'%')
|
||||
->orWhere('description', 'ilike', '%'.$this->search.'%')
|
||||
->orWhere('subtitle', 'ilike', '%'.$this->search.'%'),
|
||||
->whereLike('name', '%'.$this->search.'%')
|
||||
->orWhereLike('description', '%'.$this->search.'%')
|
||||
->orWhereLike('subtitle', '%'.$this->search.'%'),
|
||||
)
|
||||
->orderByDesc('has_future_events')
|
||||
->orderBy('name', 'asc')
|
||||
|
||||
Reference in New Issue
Block a user