翻译内容不通畅,缺少重点 。
修改理由:
详细描述:
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:
相关信息:
- 类型:文档文章
- 文章: 修改器
- 文档: 《Laravel 5.7 中文文档(5.7)》
此投稿已在 6年前 合并。
内容修改:
| Old | New | Differences |
|---|---|---|
| 228 | 228 | <a name="date-casting"></a> |
| 229 | 229 | ### Date 转换 |
| 230 | 230 | |
| 231 | ||
| 231 | 使用 `date` 或 `datetime` 转换类型时,你可以指定日期的格式。[当模型序列化为数组或JSON时](/docs/{{version}}/eloquent-serialization),将使用此格式: | |
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | 234 | * 这个属性应该被转换为原生的类型. |
关于 LearnKu