diff --git a/eloquent-mutators.md b/eloquent-mutators.md index 04acc2e38f8..f2a577330c9 100644 --- a/eloquent-mutators.md +++ b/eloquent-mutators.md @@ -114,6 +114,24 @@ As noted above, when retrieving attributes that are listed in your `$dates` prop return $user->disabled_at->getTimestamp(); +If you need to customize the format of your timestamps, set the `$dateFormat` property on your model. This property determines how date attributes are stored in the database, as well as their format when the model is serialized to an array or JSON: + + ## Attribute Casting