change file require order to fix get config from database

This commit is contained in:
xiaomlove
2021-01-12 01:54:46 +08:00
parent 7373ec16e8
commit f763eeac98
7 changed files with 160 additions and 52 deletions

19
config/database.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
return [
'mysql' => [
'host' => env('MYSQL_HOST', '127.0.0.1'),
'port' => env('MYSQL_PORT', 3306),
'username' => env('MYSQL_USERNAME', 'root'),
'password' => env('MYSQL_PASSWORD', ''),
'database' => env('MYSQL_DATABASE', 'nexusphp'),
],
'redis' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DATABASE', 0),
],
];