Timestamp?Int?
回复内容:
Timestamp?Int?
laravel框架中默认的ORM模型created_at,updated_at字段的数据类型是datetime
也可以改为int
<code class="php">public functio<b style="color:transparent">来&源gao@dai!ma.com搞$代^码%网</b><img>搞gaodaima代码</img>n fromDateTime($value){ return strtotime(parent::fromDateTime($value)); }</code>
http://www.golaravel.com/laravel/docs/5.0/eloquent/#timestamps