Skip to content

Commit 696edb0

Browse files
committed
LaravelRuleModel模型里加 public $timestamps = false; 要不然就要在数据库添加两个时间字段
1 parent 2da45c7 commit 696edb0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Model/LaravelRuleModel.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
*/
1919
class LaravelRuleModel extends Model
2020
{
21+
/**
22+
* Indicates if the model should be timestamped.
23+
*
24+
* @var bool
25+
*/
26+
public $timestamps = false;
27+
2128
/**
2229
* a cache store.
2330
*

0 commit comments

Comments
 (0)