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
{
return BitcoinEvent::query()
->whereHas('venue.city.country', fn($query) => $query->where('code', $this->country))
->orWhere('show_worldwide', true);
->where(fn($query) => $query->whereHas('venue.city.country',
fn($query) => $query->where('code', $this->country))
->orWhere('show_worldwide', true));
}
}