Skip to content

Commit

Permalink
增加时间字段配置
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jul 22, 2021
1 parent 48b8b9d commit de676d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
// 时间字段取出后的默认时间格式
'datetime_format' => 'Y-m-d H:i:s',

// 时间字段配置 配置格式:create_time,update_time
'datetime_field' => '',

// 数据库连接配置信息
'connections' => [
'mysql' => [
Expand Down

0 comments on commit de676d9

Please sign in to comment.