Welcome Guest, Not a member yet? Register   Sign In
Myql Shema of deleted_at etc
#1

Hey i want to use the timestamps function of the modle in which format has the colum to be ?
Reply
#2

@ByteHive,

The db column should be a timestamp or are you talking about the PHP variable?
Reply
#3

(This post was last modified: 02-21-2020, 03:24 PM by dave friend.)

The schema datatype should be either a DATETIME or INTEGER (for a timestamp) and defined in the model’s $dateFormat property to match the schema. The default field name is deleted_at however this can be set to any name you want by using the $deletedField property.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB