mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
filters changed
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Http\Livewire\Tables;
|
||||
|
||||
use App\Models\BitcoinEvent;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Rappasoft\LaravelLivewireTables\DataTableComponent;
|
||||
use Rappasoft\LaravelLivewireTables\Views\Column;
|
||||
|
||||
@@ -56,4 +57,10 @@ class BitcoinEventTable extends DataTableComponent
|
||||
->sortable(),
|
||||
];
|
||||
}
|
||||
|
||||
public function builder(): Builder
|
||||
{
|
||||
return BitcoinEvent::query()
|
||||
->whereHas('venue.city.country', fn($query) => $query->where('code', $this->country));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user