Should I use DATETEIME? or INT?
Thanks!
EDIT: I'm specifically addressing the
public static $timestamps = true;
flag set in Eloquent models.
Should I use DATETEIME? or INT?
Thanks!
EDIT: I'm specifically addressing the
public static $timestamps = true;
flag set in Eloquent models.
Laravel only supports datetime
for their timestamps.
Just as an update: Mich's answer is still valid for Laravel 3 and below,
but as of Laravel 4, it switched to supporting timestamp
columns for created_at
and updated_at
.