Skip to content

Commit f2e18af

Browse files
committed
formatting
1 parent d6c83c6 commit f2e18af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eloquent-mutators.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ In this example, the `setFirstNameAttribute` function will be called with the va
9999
<a name="date-mutators"></a>
100100
## Date Mutators
101101

102-
By default, Eloquent will convert the `created_at` and `updated_at` columns to instances of [Carbon](https://github.com/briannesbitt/Carbon), which extends the PHP `DateTime` class to provide an assortment of helpful methods. You may add date attributes by setting the `$dates` property of your model:
102+
By default, Eloquent will convert the `created_at` and `updated_at` columns to instances of [Carbon](https://github.com/briannesbitt/Carbon), which extends the PHP `DateTime` class and provides an assortment of helpful methods. You may add additional date attributes by setting the `$dates` property of your model:
103103

104104
<?php
105105

@@ -118,10 +118,10 @@ By default, Eloquent will convert the `created_at` and `updated_at` columns to i
118118
'seen_at',
119119
];
120120
}
121-
122-
You may disable the default `created_at` and `updated_at` timestamps by setting the public `$timestamps` property of the model to `false`.
123121

124-
When a column is considered a date, you may set its value to a UNIX timestamp, date string (`Y-m-d`), date-time string, and of course a `DateTime` / `Carbon` instance, and the date's value will automatically be correctly stored in your database:
122+
> {tip} You may disable the default `created_at` and `updated_at` timestamps by setting the public `$timestamps` property of your model to `false`.
123+
124+
When a column is considered a date, you may set its value to a UNIX timestamp, date string (`Y-m-d`), date-time string, and of course a `DateTime` / `Carbon` instance. The date's value will be correctly converted and stored in your database:
125125

126126
$user = App\User::find(1);
127127

0 commit comments

Comments
 (0)