Skip to content

Commit

Permalink
Update databases.php (#34)
Browse files Browse the repository at this point in the history
安装时启用 model_cache时会覆盖config/autoload/databases.php文件,导致port与gen:model丢失问题
  • Loading branch information
e282486518 authored Mar 17, 2020
1 parent 598ff22 commit fe8d497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installer/resources/model_cache/databases.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'default' => [
'driver' => env('DB_DRIVER', 'mysql'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', 3306),
'database' => env('DB_DATABASE', 'hyperf'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
Expand All @@ -37,7 +38,7 @@
'load_script' => true,
],
'commands' => [
'db:model' => [
'gen:model' => [
'path' => 'app/Model',
'force_casts' => true,
'inheritance' => 'Model',
Expand Down

0 comments on commit fe8d497

Please sign in to comment.