protected $dateFormat = 'Y-m-d H:i:s';
在模型中定义 时间戳转化格式
protected $type = [
'check_time' => 'timestamp',
'completion_time' => 'timestamp',
'processing_time' => 'timestamp',
];
定义字段类型为timestamp
protected $dateFormat = 'Y-m-d H:i:s';
在模型中定义 时间戳转化格式
protected $type = [
'check_time' => 'timestamp',
'completion_time' => 'timestamp',
'processing_time' => 'timestamp',
];
定义字段类型为timestamp