DB::transaction(function () { DB::table('users')->update(['votes' => 1]); DB::table('posts')->delete(); }, );