you can just get the timestamp property, for example:
$timestamp = $model->created_at->timestamp;
or you can override getDateFormat () and create the migration of the required fields, for example:
$table->integer('created_at');
$table->integer('updated_at');
source
share