webman-admin/config/database.php
2023-09-20 13:54:09 +08:00

24 lines
591 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' => 'la_',
'strict' => true,
'engine' => null,
],
],
];