greater than now

This commit is contained in:
Benjamin Takats
2022-12-19 11:38:11 +01:00
parent fafedad9d2
commit af91aa5498
2 changed files with 4 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ class BitcoinEventTable extends Component
->with([
'venue.city.country',
])
->where('bitcoin_events.from', '>=', now())
->where(fn($query) => $query
->whereHas('venue.city.country',
fn($query) => $query->where('countries.code', $this->country->code))
@@ -40,6 +41,7 @@ class BitcoinEventTable extends Component
'coords' => [$event->venue->city->latitude, $event->venue->city->longitude],
]),
'events' => BitcoinEvent::query()
->where('bitcoin_events.from', '>=', now())
->get()
->map(fn($event) => [
'id' => $event->id,