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.
https://github.com/laravel/laravel/pull/769
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
.
Here's a related issue on GitHub
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With