@@ -19,6 +19,12 @@ Sets the date of fields to the current date and time if an inputted counterpart
1919- [ Requirements] ( #requirements )
2020- [ How to install] ( #how-to-install )
2121- [ How to use] ( #how-to-use )
22+ - [ Saving dates] ( #saving-dates )
23+ - [ Clearing saved values] ( #clearing-saved-values )
24+ - [ Retrieving values] ( #retrieving-values )
25+ - [ Retrieving fields as booleans] ( #retrieving-fields-as-booleans )
26+ - [ Retrieving fields as datetimes] ( #retrieving-fields-as-datetimes )
27+ - [ Array conversion] ( #array-conversion )
2228- [ License] ( #license )
2329- [ Change log] ( #change-log )
2430- [ Testing] ( #testing )
@@ -95,7 +101,7 @@ $user->fill([
95101$user->save();
96102```
97103
98- When you now check your database, all fields should contain a datetime similar to ` 2018-05-10 16:24:22 ` .
104+ All fields should now contain a datetime similar to ` 2018-05-10 16:24:22 ` .
99105
100106### Clearing saved values
101107
@@ -109,7 +115,7 @@ $user->allows_data_processing = false;
109115$user->save();
110116```
111117
112- False values will be converted to ` NULL ` in your database .
118+ False values are converted to ` NULL ` .
113119
114120### Retrieving values
115121
@@ -118,8 +124,6 @@ False values will be converted to `NULL` in your database.
118124Use a boolean field's defined _ key_ to access its boolean value:
119125
120126``` php
121- <?php
122-
123127$user = User::findOrFail(42);
124128
125129$user->has_accepted_terms_and_conditions;
@@ -146,8 +150,6 @@ $user->has_agreed_to_something;
146150Use a boolean field's defined _ value_ to explicitly access its (Carbon) datetime value:
147151
148152``` php
149- <?php
150-
151153$user = User::findOrFail(42);
152154
153155$user->accepted_terms_at;
0 commit comments