Skip to content

Commit

Permalink
LaravelRuleModel模型里加 public $timestamps = false; 要不然就要在数据库添加两个时间字段
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinywan committed Mar 30, 2022
1 parent 2da45c7 commit 696edb0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Model/LaravelRuleModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
*/
class LaravelRuleModel extends Model
{
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = false;

/**
* a cache store.
*
Expand Down

0 comments on commit 696edb0

Please sign in to comment.