mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
subquery
This commit is contained in:
@@ -82,17 +82,17 @@ class MeetupTable extends DataTableComponent
|
|||||||
'users',
|
'users',
|
||||||
'meetupEvents' => fn($query) => $query->where('start', '>=',
|
'meetupEvents' => fn($query) => $query->where('start', '>=',
|
||||||
now()),
|
now()),
|
||||||
])
|
]);
|
||||||
->when(!$this->country, fn($query) => $query->orderBy(
|
// ->when(!$this->country, fn($query) => $query->orderBy(
|
||||||
MeetupUser::select('meetup_id')
|
// MeetupUser::select('meetup_id')
|
||||||
->whereColumn('meetup_id', 'meetups.id')
|
// ->whereColumn('meetup_id', 'meetups.id')
|
||||||
))
|
// ))
|
||||||
->when($this->country, fn($query) => $query->orderBy(
|
// ->when($this->country, fn($query) => $query->orderBy(
|
||||||
MeetupEvent::select('start')
|
// MeetupEvent::select('start')
|
||||||
->whereColumn('meetup_id', 'meetups.id')
|
// ->whereColumn('meetup_id', 'meetups.id')
|
||||||
->where('start', '>=', now())
|
// ->where('start', '>=', now())
|
||||||
->orderBy('start')
|
// ->orderBy('start')
|
||||||
));
|
// ));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function meetupEventSearch($id)
|
public function meetupEventSearch($id)
|
||||||
|
|||||||
Reference in New Issue
Block a user