From 636efb95f5f76a972f34a086dc4e664da5b7212c Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Thu, 19 Jan 2023 11:50:48 +0100 Subject: [PATCH] table ids --- app/Http/Livewire/Tables/BitcoinEventTable.php | 1 + app/Http/Livewire/Tables/CourseTable.php | 1 + app/Http/Livewire/Tables/EventTable.php | 1 + app/Http/Livewire/Tables/LecturerTable.php | 1 + app/Http/Livewire/Tables/LibraryItemTable.php | 1 + app/Http/Livewire/Tables/MeetupEventTable.php | 1 + app/Http/Livewire/Tables/VenueTable.php | 1 + 7 files changed, 7 insertions(+) diff --git a/app/Http/Livewire/Tables/BitcoinEventTable.php b/app/Http/Livewire/Tables/BitcoinEventTable.php index cd71790b..7eabc101 100644 --- a/app/Http/Livewire/Tables/BitcoinEventTable.php +++ b/app/Http/Livewire/Tables/BitcoinEventTable.php @@ -19,6 +19,7 @@ class BitcoinEventTable extends DataTableComponent $this->setPrimaryKey('id') ->setDefaultSort('from', 'asc') ->setAdditionalSelects([ + 'id', 'bitcoin_events.id', 'bitcoin_events.venue_id' ]) diff --git a/app/Http/Livewire/Tables/CourseTable.php b/app/Http/Livewire/Tables/CourseTable.php index 4acf80b9..26f61aeb 100644 --- a/app/Http/Livewire/Tables/CourseTable.php +++ b/app/Http/Livewire/Tables/CourseTable.php @@ -18,6 +18,7 @@ class CourseTable extends DataTableComponent public function configure(): void { $this->setPrimaryKey('id') + ->setAdditionalSelects(['id']) ->setThAttributes(function (Column $column) { return [ 'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400', diff --git a/app/Http/Livewire/Tables/EventTable.php b/app/Http/Livewire/Tables/EventTable.php index 48e4a1f1..c6bb2944 100644 --- a/app/Http/Livewire/Tables/EventTable.php +++ b/app/Http/Livewire/Tables/EventTable.php @@ -25,6 +25,7 @@ class EventTable extends DataTableComponent ->setPrimaryKey('id') ->setDefaultSort('from', 'asc') ->setAdditionalSelects([ + 'id', 'course_id', 'venue_id', ]) diff --git a/app/Http/Livewire/Tables/LecturerTable.php b/app/Http/Livewire/Tables/LecturerTable.php index c7d890f2..6fcb6704 100644 --- a/app/Http/Livewire/Tables/LecturerTable.php +++ b/app/Http/Livewire/Tables/LecturerTable.php @@ -17,6 +17,7 @@ class LecturerTable extends DataTableComponent public function configure(): void { $this->setPrimaryKey('id') + ->setAdditionalSelects(['id']) ->setDefaultSort('courses_events_count', 'desc') ->setThAttributes(function (Column $column) { return [ diff --git a/app/Http/Livewire/Tables/LibraryItemTable.php b/app/Http/Livewire/Tables/LibraryItemTable.php index a2c12102..b52cebd4 100644 --- a/app/Http/Livewire/Tables/LibraryItemTable.php +++ b/app/Http/Livewire/Tables/LibraryItemTable.php @@ -24,6 +24,7 @@ class LibraryItemTable extends DataTableComponent { $this ->setPrimaryKey('id') + ->setAdditionalSelects(['id']) ->setDefaultSort('order_column', 'asc') ->setThAttributes(function (Column $column) { return [ diff --git a/app/Http/Livewire/Tables/MeetupEventTable.php b/app/Http/Livewire/Tables/MeetupEventTable.php index d242aef8..af2c49a0 100644 --- a/app/Http/Livewire/Tables/MeetupEventTable.php +++ b/app/Http/Livewire/Tables/MeetupEventTable.php @@ -17,6 +17,7 @@ class MeetupEventTable extends DataTableComponent public function configure(): void { $this->setPrimaryKey('id') + ->setAdditionalSelects(['id']) ->setDefaultSort('start', 'asc') ->setAdditionalSelects(['meetup_events.meetup_id']) ->setThAttributes(function (Column $column) { diff --git a/app/Http/Livewire/Tables/VenueTable.php b/app/Http/Livewire/Tables/VenueTable.php index d5769cdf..3555b53f 100644 --- a/app/Http/Livewire/Tables/VenueTable.php +++ b/app/Http/Livewire/Tables/VenueTable.php @@ -17,6 +17,7 @@ class VenueTable extends DataTableComponent public function configure(): void { $this->setPrimaryKey('id') + ->setAdditionalSelects(['id']) ->setDefaultSort('course_events_count', 'desc') ->setThAttributes(function (Column $column) { return [