mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
greater than now
This commit is contained in:
@@ -71,7 +71,7 @@ class MeetupTable extends DataTableComponent
|
||||
return Meetup::query()
|
||||
->whereHas('city.country', fn($query) => $query->where('code', $this->country))
|
||||
->withCount([
|
||||
'meetupEvents',
|
||||
'meetupEvents' => fn($query) => $query->where('start', '>=', now()),
|
||||
])
|
||||
->orderBy('meetup_events_count', 'desc');
|
||||
}
|
||||
|
||||
@@ -350,6 +350,17 @@ class DatabaseSeeder extends Seeder
|
||||
'link' => 'https://t.me/EinundzwanzigKempten',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
MeetupEvent::create([
|
||||
'meetup_id' => 1,
|
||||
'start' => now()
|
||||
->subDays(2)
|
||||
->startOfDay()
|
||||
->addHours(20),
|
||||
'location' => 'Einundzwanzig Kempten',
|
||||
'description' => fake()->text(),
|
||||
'link' => 'https://t.me/EinundzwanzigKempten',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
BitcoinEvent::create([
|
||||
'venue_id' => 4,
|
||||
'from' => Carbon::parse('2023-09-12')
|
||||
|
||||
Reference in New Issue
Block a user