Documentation

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

Methods

_timestampablePreSave()

Set the 'created_at' and 'updated_at' fields with the selected format.

public _timestampablePreSave([ $format = "Y-m-d H:i:s" ]) : void
Parameters
$format : = "Y-m-d H:i:s"
Return values
void

Search results