laravel add timestamps to existing table
snippet in php

laravel add timestamps to existing table

user6780

$table->dateTime('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
$table->dateTime('updated_at')->nullable();