IceBay 4年前

修改理由:

翻译内容不通畅,缺少重点 。

详细描述:

When using the date or datetime cast type, you may specify the date's format. This format will be used when the model is serialized to an array or JSON:

相关信息:


此投稿已在 4年前 合并。

内容修改:

红色背景 为原始内容

绿色背景 为新增或者修改的内容

OldNewDifferences
228228<a name="date-casting"></a>
229229### Date 转换
230230
231 当你使用 `date` 或 `datetime` 属性时, 你可以指定日期的格式 , [模型序列化为数组或者 JSON ](/docs/{{version}}/eloquent-serialization):
 231使用 `date` 或 `datetime` 转换类型时,你可以指定日期的格式。[当模型序列化为数组或JSON时](/docs/{{version}}/eloquent-serialization),将使用此格式:
232232
233233   /**
234234    * 这个属性应该被转换为原生的类型.