mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-18 00:54:24 +00:00
🌍 Scope cities and venues by country, add default country handling, and enhance dropdowns with searchable and flag-based country selection
This commit is contained in:
@@ -27,6 +27,7 @@ class extends Component {
|
||||
->when($this->search, fn($query)
|
||||
=> $query->where('name', 'ilike', '%'.$this->search.'%'),
|
||||
)
|
||||
->whereHas('city.country', fn($query) => $query->where('countries.code', $this->country))
|
||||
->orderBy('name')
|
||||
->paginate(15),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user