From 9d2d5ca000b19c6794165a856ac3b3f0d7bf9e91 Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Thu, 19 Jan 2023 11:56:47 +0100 Subject: [PATCH] public string $tableName --- app/Http/Livewire/Tables/BitcoinEventTable.php | 2 ++ app/Http/Livewire/Tables/BookCaseTable.php | 1 + app/Http/Livewire/Tables/CityTable.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/MeetupTable.php | 1 + app/Http/Livewire/Tables/VenueTable.php | 1 + 10 files changed, 11 insertions(+) diff --git a/app/Http/Livewire/Tables/BitcoinEventTable.php b/app/Http/Livewire/Tables/BitcoinEventTable.php index 7eabc101..77d2e3ab 100644 --- a/app/Http/Livewire/Tables/BitcoinEventTable.php +++ b/app/Http/Livewire/Tables/BitcoinEventTable.php @@ -10,9 +10,11 @@ use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter; class BitcoinEventTable extends DataTableComponent { + public string $country; protected $model = BitcoinEvent::class; + public string $tableName = 'bitcoin_events'; public function configure(): void { diff --git a/app/Http/Livewire/Tables/BookCaseTable.php b/app/Http/Livewire/Tables/BookCaseTable.php index cb342659..4fa8c0cf 100644 --- a/app/Http/Livewire/Tables/BookCaseTable.php +++ b/app/Http/Livewire/Tables/BookCaseTable.php @@ -28,6 +28,7 @@ class BookCaseTable extends DataTableComponent 'comment' => '', ]; protected $model = BookCase::class; + public string $tableName = 'bookcases'; public function configure(): void { diff --git a/app/Http/Livewire/Tables/CityTable.php b/app/Http/Livewire/Tables/CityTable.php index b52b61c3..8ca6b61a 100644 --- a/app/Http/Livewire/Tables/CityTable.php +++ b/app/Http/Livewire/Tables/CityTable.php @@ -17,6 +17,7 @@ class CityTable extends DataTableComponent public string $type; protected $model = City::class; + public string $tableName = 'cities'; public function configure(): void { diff --git a/app/Http/Livewire/Tables/CourseTable.php b/app/Http/Livewire/Tables/CourseTable.php index 26f61aeb..18c4c9e6 100644 --- a/app/Http/Livewire/Tables/CourseTable.php +++ b/app/Http/Livewire/Tables/CourseTable.php @@ -14,6 +14,7 @@ class CourseTable extends DataTableComponent public string $country; protected $model = Course::class; + public string $tableName = 'courses'; public function configure(): void { diff --git a/app/Http/Livewire/Tables/EventTable.php b/app/Http/Livewire/Tables/EventTable.php index c6bb2944..6016d89b 100644 --- a/app/Http/Livewire/Tables/EventTable.php +++ b/app/Http/Livewire/Tables/EventTable.php @@ -18,6 +18,7 @@ class EventTable extends DataTableComponent public bool $viewingModal = false; public $currentModal; protected $model = CourseEvent::class; + public string $tableName = 'events'; public function configure(): void { diff --git a/app/Http/Livewire/Tables/LecturerTable.php b/app/Http/Livewire/Tables/LecturerTable.php index 6fcb6704..9a348056 100644 --- a/app/Http/Livewire/Tables/LecturerTable.php +++ b/app/Http/Livewire/Tables/LecturerTable.php @@ -13,6 +13,7 @@ class LecturerTable extends DataTableComponent { public string $country; protected $model = Lecturer::class; + public string $tableName = 'lecturers'; public function configure(): void { diff --git a/app/Http/Livewire/Tables/LibraryItemTable.php b/app/Http/Livewire/Tables/LibraryItemTable.php index b52cebd4..89ad340d 100644 --- a/app/Http/Livewire/Tables/LibraryItemTable.php +++ b/app/Http/Livewire/Tables/LibraryItemTable.php @@ -19,6 +19,7 @@ class LibraryItemTable extends DataTableComponent { public string $currentTab; protected $model = LibraryItem::class; + public string $tableName = 'library_items'; public function configure(): void { diff --git a/app/Http/Livewire/Tables/MeetupEventTable.php b/app/Http/Livewire/Tables/MeetupEventTable.php index af2c49a0..5fad06ef 100644 --- a/app/Http/Livewire/Tables/MeetupEventTable.php +++ b/app/Http/Livewire/Tables/MeetupEventTable.php @@ -13,6 +13,7 @@ class MeetupEventTable extends DataTableComponent public string $country; protected $model = MeetupEvent::class; + public string $tableName = 'meetup_events'; public function configure(): void { diff --git a/app/Http/Livewire/Tables/MeetupTable.php b/app/Http/Livewire/Tables/MeetupTable.php index 2dbc9ea5..2c17457c 100644 --- a/app/Http/Livewire/Tables/MeetupTable.php +++ b/app/Http/Livewire/Tables/MeetupTable.php @@ -13,6 +13,7 @@ class MeetupTable extends DataTableComponent public ?string $country = null; protected $model = Meetup::class; + public string $tableName = 'meetups'; public function configure(): void { diff --git a/app/Http/Livewire/Tables/VenueTable.php b/app/Http/Livewire/Tables/VenueTable.php index 3555b53f..8173cf5f 100644 --- a/app/Http/Livewire/Tables/VenueTable.php +++ b/app/Http/Livewire/Tables/VenueTable.php @@ -13,6 +13,7 @@ class VenueTable extends DataTableComponent public string $country; protected $model = Venue::class; + public string $tableName = 'venues'; public function configure(): void {