laravel框架中默认的ORM模型created_at,updated_at字段的数据类型是datetime
也可以改为int


 public function fromDateTime($value){
        return strtotime(parent::fromDateTime($value));
    }

爱吃包子的某樱 answered 9 years, 8 months ago

Your Answer