vuhung3990
10/14/2014 - 3:00 AM

Laravel default timestamp issui

Laravel default timestamp issui

$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
$table->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP'));