greater than now

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

View File

@@ -89,6 +89,7 @@ class BitcoinEventTable extends DataTableComponent
->with([
'venue.city.country'
])
->where('bitcoin_events.from', '>=', now())
->where(fn($query) => $query
->whereHas('venue.city.country',
fn($query) => $query->where('code', $this->country))

View File

@@ -81,6 +81,7 @@ class MeetupEventTable extends DataTableComponent
public function builder(): Builder
{
return MeetupEvent::query()
->where('meetup_events.start', '>=', now())
->whereHas('meetup.city.country', fn($query) => $query->where('code', $this->country))
->with([
'meetup',