Timestampable
Simple trait to keep track of create and update dates.
Table of Contents
- $created_at : mixed
- $updated_at : mixed
- _timestampablePreSave() : void
- Set the 'created_at' and 'updated_at' fields with the selected format.
Properties
$created_at
public
mixed
$created_at
$updated_at
public
mixed
$updated_at
Methods
_timestampablePreSave()
Set the 'created_at' and 'updated_at' fields with the selected format.
public
_timestampablePreSave([ $format = "Y-m-d H:i:s" ]) : void