timestampCasts() timestampCasts() : array<string,string> 全库统一的时间列 cast 段(单源:约 22 个模型 casts() 内重复的两行)。 使用方模型 casts() 内 `return array_merge(self::timestampCasts(), [...])`。 Returns array —
serializeDate() serializeDate(\DateTimeInterface $date) : string 所有日期属性统一按 "年-月-日 时:分:秒" 序列化。 Parameters \DateTimeInterface $date Returns string —