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 ce01de5 commit 050df53Copy full SHA for 050df53
src/SQLLoader.php
@@ -100,7 +100,7 @@ public function into(
100
public function createColumnsFromHeaders(string $table, array $columns): array
101
{
102
$columns = array_map('strtolower', $columns);
103
- $schemaColumns = collect(Schema::connection(config('sql-loader.connection'))->getColumns($table));
+ $schemaColumns = collect(Schema::connection($this->getConnection())->getColumns($table));
104
105
$dates = $schemaColumns->filter(fn ($column) => in_array($column['type'], [
106
'date',
0 commit comments