Package: Record\Mixin
Mixin for models that keep added and/or modified timestamps.
Initialize the mixin.
Setting either of the column parameters to null will skip updating thattimestamp. The default column names are ‘updated’ and ‘added’.
Parameters: |
|
---|
Before saving a record, set the “updated” timestamp.
Parameters: |
|
---|
Update a timestamp column for the underlying record.
Parameters: |
|
---|