From b9e1731f395e768971c0ded52ab328d7bc970049 Mon Sep 17 00:00:00 2001 From: Globerada Date: Mon, 7 Nov 2022 17:51:35 +0100 Subject: [PATCH 1/2] Update CsvImporter.php You have renamed to handle-imports the csv-imports from Codecourse. --- src/Http/Livewire/CsvImporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Livewire/CsvImporter.php b/src/Http/Livewire/CsvImporter.php index 27b022c..da9e62e 100644 --- a/src/Http/Livewire/CsvImporter.php +++ b/src/Http/Livewire/CsvImporter.php @@ -83,7 +83,7 @@ public function import() $this->resetExcept($this->exceptions); - $this->emitTo('csv-imports', 'imports.refresh'); + $this->emitTo('handle-imports', 'imports.refresh'); } public function toggle() From b4ad492db109943e504b288a891c2c415a2ebfdc Mon Sep 17 00:00:00 2001 From: Globerada Date: Mon, 7 Nov 2022 17:57:56 +0100 Subject: [PATCH 2/2] Update CsvImporter.php --- src/Http/Livewire/CsvImporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Livewire/CsvImporter.php b/src/Http/Livewire/CsvImporter.php index da9e62e..b627953 100644 --- a/src/Http/Livewire/CsvImporter.php +++ b/src/Http/Livewire/CsvImporter.php @@ -45,7 +45,7 @@ class CsvImporter extends Component /** @var array */ protected $exceptions = [ - 'mode', 'columnsToMap', 'open', + 'model', 'columnsToMap', 'open', 'columnLabels', 'requiredColumns', ];