From 04b28b924d490ca589084c22299a1ee14bc6edc0 Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Thu, 15 Dec 2022 19:19:55 +0100 Subject: [PATCH] event calendar --- app/Http/Livewire/Tables/BitcoinEventTable.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/Tables/BitcoinEventTable.php b/app/Http/Livewire/Tables/BitcoinEventTable.php index a07e7221..f4c06d57 100644 --- a/app/Http/Livewire/Tables/BitcoinEventTable.php +++ b/app/Http/Livewire/Tables/BitcoinEventTable.php @@ -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)); } }