File tree Expand file tree Collapse file tree
user_guide_src/source/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,6 +124,8 @@ qualified name of a class** that can be used with the Result object's ``getCusto
124124method. Using the special ``::class `` constant of the class will allow most IDEs to
125125auto-complete the name and allow functions like refactoring to better understand your code.
126126
127+ .. _model-use-soft-deletes :
128+
127129$useSoftDeletes
128130---------------
129131
@@ -154,7 +156,7 @@ $useTimestamps
154156
155157This boolean value determines whether the current date is automatically added to all inserts
156158and updates. If true, will set the current time in the format specified by ``$dateFormat ``. This
157- requires that the table have columns named **created_at ** and **updated_at ** in the appropriate
159+ requires that the table have columns named **created_at **, ** updated_at ** and **deleted_at ** in the appropriate
158160data type.
159161
160162$dateFormat
@@ -177,7 +179,10 @@ $updatedField
177179Specifies which database field should use for keep data record update timestamp.
178180Leave it empty to avoid update it (even ``$useTimestamps `` is enabled).
179181
182+ $deletedField
183+ -------------
180184
185+ Specifies which database field should use for soft deletions. See :ref: `model-use-soft-deletes `.
181186
182187$validationRules
183188----------------
You can’t perform that action at this time.
0 commit comments