fix: 优化数据库默认配置

This commit is contained in:
邹景立 2024-09-01 00:33:22 +08:00
parent 550e44b878
commit 0cf4a12711
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
[db]
type=sqlite
[mysql]
hostname=127.0.0.1
hostport=3306

View File

@ -16,7 +16,7 @@
return [
// 默认使用的数据库连接配置
'default' => 'sqlite',
'default' => env('db.type', 'sqlite'),
// 自定义时间查询规则
'time_query_rule' => [],
// 自动写入时间戳字段