Skip to content

Commit 1278fc2

Browse files
committed
docs: move the section up
1 parent f917dc0 commit 1278fc2

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

user_guide_src/source/models/model.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ and updates. If true, will set the current time in the format specified by ``$da
157157
requires that the table have columns named **created_at** and **updated_at** in the appropriate
158158
data type.
159159

160+
$dateFormat
161+
-----------
162+
163+
This value works with ``$useTimestamps`` and ``$useSoftDeletes`` to ensure that the correct type of
164+
date value gets inserted into the database. By default, this creates DATETIME values, but
165+
valid options are: ``'datetime'``, ``'date'``, or ``'int'`` (a PHP timestamp). Using **useSoftDeletes** or
166+
useTimestamps with an invalid or missing dateFormat will cause an exception.
167+
160168
$createdField
161169
-------------
162170

@@ -169,13 +177,7 @@ $updatedField
169177
Specifies which database field should use for keep data record update timestamp.
170178
Leave it empty to avoid update it (even ``$useTimestamps`` is enabled).
171179

172-
$dateFormat
173-
-----------
174180

175-
This value works with ``$useTimestamps`` and ``$useSoftDeletes`` to ensure that the correct type of
176-
date value gets inserted into the database. By default, this creates DATETIME values, but
177-
valid options are: ``'datetime'``, ``'date'``, or ``'int'`` (a PHP timestamp). Using **useSoftDeletes** or
178-
useTimestamps with an invalid or missing dateFormat will cause an exception.
179181

180182
$validationRules
181183
----------------

0 commit comments

Comments
 (0)