Skip to content

Commit fe8d497

Browse files
authored
Update databases.php (#34)
安装时启用 model_cache时会覆盖config/autoload/databases.php文件,导致port与gen:model丢失问题
1 parent 598ff22 commit fe8d497

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

installer/resources/model_cache/databases.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
'default' => [
1515
'driver' => env('DB_DRIVER', 'mysql'),
1616
'host' => env('DB_HOST', 'localhost'),
17+
'port' => env('DB_PORT', 3306),
1718
'database' => env('DB_DATABASE', 'hyperf'),
1819
'username' => env('DB_USERNAME', 'root'),
1920
'password' => env('DB_PASSWORD', ''),
@@ -37,7 +38,7 @@
3738
'load_script' => true,
3839
],
3940
'commands' => [
40-
'db:model' => [
41+
'gen:model' => [
4142
'path' => 'app/Model',
4243
'force_casts' => true,
4344
'inheritance' => 'Model',

0 commit comments

Comments
 (0)