将thinkpp5.1升级到thinkphp6.0

This commit is contained in:
cxdbz committed 2019-12-01 20:48:48 +08:00
1 parent 338ce8261c
commit 6eb9b489d9
354 files changed
+83184

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace app\common\model;
// 引用模型类
use think\Model;
// 引用软删除类
use think\model\concern\SoftDelete;
class Base extends Model
{
// 开启全局自动时间戳
protected $autoWriteTimestamp = true;
// 开启软删除
use SoftDelete;
protected $deleteTime = 'delete_time';
}