mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
all courses
This commit is contained in:
@@ -103,8 +103,6 @@ class CourseTable extends DataTableComponent
|
|||||||
->withCount([
|
->withCount([
|
||||||
'courseEvents' => fn($query) => $query->where('course_events.from', '>', now()),
|
'courseEvents' => fn($query) => $query->where('course_events.from', '>', now()),
|
||||||
])
|
])
|
||||||
->whereHas('courseEvents.venue.city.country',
|
|
||||||
fn ($query) => $query->where('countries.code', $this->country))
|
|
||||||
->orderByDesc('course_events_count')
|
->orderByDesc('course_events_count')
|
||||||
->orderBy('courses.id');
|
->orderBy('courses.id');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user