Skip to content

Commit 399bff9

Browse files
committed
allow * for columns
1 parent a84264d commit 399bff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Query/Grammars/Grammar.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ public function compileInsertUsing(Builder $query, array $columns, string $sql)
10641064
{
10651065
$table = $this->wrapTable($query->from);
10661066

1067-
if (empty($columns)) {
1067+
if (empty($columns) || $columns === ['*']) {
10681068
return "insert into {$table} $sql";
10691069
}
10701070

0 commit comments

Comments
 (0)