laravel ORM 只开启created_at的方法

class User extends Model {
  //重写setUpdatedAt方法
  public function setUpdatedAt($value) {
    // Do nothing.
  }
  //public function setCreatedAt($value)
  //{
    // Do nothing.
  //}
}

  

posted @ 2018-06-05 18:12  litf  阅读(736)  评论(0)    收藏  举报