Search code examples
mysqldatetimeintlaraveleloquent

What type of column should I use for created_at and modified_at in Laravel Eloquent 2?


Should I use DATETEIME? or INT?

Thanks!

EDIT: I'm specifically addressing the

public static $timestamps = true;

flag set in Eloquent models.


Solution

  • Laravel only supports datetime for their timestamps.

    https://github.com/laravel/laravel/pull/769