fix eager

This commit is contained in:
Benjamin Takats
2023-01-19 12:25:35 +01:00
parent 9d2d5ca000
commit f671a44397
7 changed files with 32 additions and 11 deletions

View File

@@ -42,6 +42,10 @@ class EventTable extends Component
'coords' => [$event->venue->city->latitude, $event->venue->city->longitude],
]),
'events' => CourseEvent::query()
->with([
'course',
'venue.city.country',
])
->where('from', '>=', now())
->get()
->map(fn($event) => [