优化代码生成

This commit is contained in:
JaguarJack
2020-06-30 10:14:27 +08:00
parent 051627547e
commit 2b4f9823ff
2 changed files with 5 additions and 5 deletions

View File

@@ -74,8 +74,7 @@ class Model extends Factory
return false;
}
$columns = Db::query('show full columns from ' .
config('database.connections.mysql.prefix') . $table);
$columns = Db::query('show full columns from ' . $table);
$new = [];
foreach ($columns as $field) {