filters changed

This commit is contained in:
Benjamin Takats
2022-12-13 15:26:45 +01:00
parent 45c8bca808
commit 06c027fe01
12 changed files with 103 additions and 38 deletions

View File

@@ -55,6 +55,7 @@ class MeetupTable extends DataTableComponent
public function builder(): Builder
{
return Meetup::query()
->whereHas('city.country', fn($query) => $query->where('code', $this->country))
->withCount([
'meetupEvents',
]);
@@ -64,7 +65,7 @@ class MeetupTable extends DataTableComponent
{
return to_route('meetup.table.meetupEvent', [
'country' => $this->country,
'table' => [
'table' => [
'filters' => ['id' => $id],
]
]);