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()
|
return Meetup::query()
|
||||||
->whereHas('city.country', fn($query) => $query->where('code', $this->country))
|
->whereHas('city.country', fn($query) => $query->where('code', $this->country))
|
||||||
->withCount([
|
->withCount([
|
||||||
'meetupEvents',
|
'meetupEvents' => fn($query) => $query->where('start', '>=', now()),
|
||||||
])
|
])
|
||||||
->orderBy('meetup_events_count', 'desc');
|
->orderBy('meetup_events_count', 'desc');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -350,6 +350,17 @@ class DatabaseSeeder extends Seeder
|
|||||||
'link' => 'https://t.me/EinundzwanzigKempten',
|
'link' => 'https://t.me/EinundzwanzigKempten',
|
||||||
'created_by' => 1,
|
'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([
|
BitcoinEvent::create([
|
||||||
'venue_id' => 4,
|
'venue_id' => 4,
|
||||||
'from' => Carbon::parse('2023-09-12')
|
'from' => Carbon::parse('2023-09-12')
|
||||||
|
|||||||
Reference in New Issue
Block a user