Module defaults

Source
Expand description

The defaults module provides the methods for creating deafult values for the Scaffolding common attributes

Functionsยง

access
generate the default value for access management
add_days
adds x days to the timestamp
add_months
adds x months to the timestamp
add_years
adds x years to the timestamp
id
generates a uuid v4 value
never
provided the default unix epoch time (UTC) as seconds for the timestamp: 9999-12-31 23:59:59
now
generate the current unix epoch time (UTC) as seconds