📅  最后修改于: 2022-03-11 15:04:58.805000             🧑  作者: Mango
Schema::table('users', function(Blueprint $table) {
$table->dateTime('last_activity');
});
\DB::statement('UPDATE users SET last_activity = updated_at');