event calendar

This commit is contained in:
Benjamin Takats
2022-12-15 19:19:55 +01:00
parent 166d47c7f2
commit 04b28b924d

View File

@@ -74,7 +74,8 @@ class BitcoinEventTable extends DataTableComponent
public function builder(): Builder public function builder(): Builder
{ {
return BitcoinEvent::query() return BitcoinEvent::query()
->whereHas('venue.city.country', fn($query) => $query->where('code', $this->country)) ->where(fn($query) => $query->whereHas('venue.city.country',
->orWhere('show_worldwide', true); fn($query) => $query->where('code', $this->country))
->orWhere('show_worldwide', true));
} }
} }