Skip to content

Commit

Permalink
allow * for columns
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 28, 2023
1 parent a84264d commit 399bff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Query/Grammars/Grammar.php
Expand Up @@ -1064,7 +1064,7 @@ public function compileInsertUsing(Builder $query, array $columns, string $sql)
{
$table = $this->wrapTable($query->from);

if (empty($columns)) {
if (empty($columns) || $columns === ['*']) {
return "insert into {$table} $sql";
}

Expand Down

0 comments on commit 399bff9

Please sign in to comment.