mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-13 23:56:47 +00:00
🌍 Include country relationships in city data for meetups edit view
This commit is contained in:
@@ -157,7 +157,12 @@ class extends Component {
|
||||
public function with(): array
|
||||
{
|
||||
return [
|
||||
'cities' => City::query()->orderBy('name')->get(),
|
||||
'cities' => City::query()
|
||||
->with([
|
||||
'country',
|
||||
])
|
||||
->orderBy('name')
|
||||
->get(),
|
||||
'countries' => Country::query()->orderBy('countries.name')->get(),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user