24 lines
602 B
PHP
24 lines
602 B
PHP
<?php
|
|
|
|
use function DI\env;
|
|
|
|
return [
|
|
// 默认数据库
|
|
'default' => 'mysql',
|
|
// 各种数据库配置
|
|
'connections' => [
|
|
|
|
'mysql' => [
|
|
'driver' => 'mysql',
|
|
'host' => env('DB_HOST'),
|
|
'port' => 3306,
|
|
'database' => env('DB_DATABASE'),
|
|
'username' => env('DB_USERNAME'),
|
|
'password' => env('DB_PASSWORD'),
|
|
'unix_socket' => '',
|
|
'prefix' => env('DB_PREFIX'),
|
|
'strict' => true,
|
|
'engine' => null,
|
|
],
|
|
],
|
|
]; |