default column value in sql same as another column laravel code example
Example: default column value in sql same as another column laravel
Schema::table('users', function(Blueprint $table) {
$table->dateTime('last_activity');
});
\DB::statement('UPDATE users SET last_activity = updated_at');