We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38032a6 commit 0023894Copy full SHA for 0023894
src/SQLLoader.php
@@ -376,7 +376,9 @@ public function beginData(array $data): static
376
public function withHeaders(): static
377
{
378
$this->options(['skip=1']);
379
- $this->defaultColumns = CsvFile::make($this->inputFiles[0]->path, 'r')->getHeaders();
+ $headers = CsvFile::make($this->inputFiles[0]->path, 'r')->getHeaders();
380
+ $headers = array_map(fn ($field) => strtoupper('"'.$field.'"'), $headers);
381
+ $this->defaultColumns = $headers;
382
383
return $this;
384
}
0 commit comments