laravel add timestamps to existing table

33

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

Comments

Submit
0 Comments