default column value in sql same as another column laravel
snippet in sql

default column value in sql same as another column laravel

user1139

Schema::table('users', function(Blueprint $table) {
    $table->dateTime('last_activity');
});

\DB::statement('UPDATE users SET last_activity = updated_at');