|
|
|
@ -5,15 +5,10 @@ use Illuminate\Database\Eloquent\Model; |
|
|
|
|
|
|
|
class BaseModel extends Model |
|
|
|
{ |
|
|
|
protected $dateFormat = 'U'; |
|
|
|
# 使用空方法覆盖,不转换时间戳
|
|
|
|
public function getUpdatedAtColumn() |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
public function getUpdatedAtColumn() { } |
|
|
|
|
|
|
|
# 使用空方法覆盖,不转换时间戳
|
|
|
|
public function getCreatedAtColumn() |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
public function getCreatedAtColumn() { } |
|
|
|
} |