laravel ORM 只开启created_at的方法

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

  

原文地址:https://www.cnblogs.com/ampl/p/9141150.html