From 399bff9331252e64a3439ea43e05f87f901dad55 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 28 Mar 2023 18:43:26 -0400 Subject: [PATCH] allow * for columns --- src/Illuminate/Database/Query/Grammars/Grammar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Database/Query/Grammars/Grammar.php b/src/Illuminate/Database/Query/Grammars/Grammar.php index eda6441f6bd7..49fefdbbce63 100755 --- a/src/Illuminate/Database/Query/Grammars/Grammar.php +++ b/src/Illuminate/Database/Query/Grammars/Grammar.php @@ -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"; }