mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
change file require order to fix get config from database
This commit is contained in:
19
config/database.php
Normal file
19
config/database.php
Normal 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),
|
||||
],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user