📌  相关文章
📜  DB::transaction - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:08.204000             🧑  作者: Mango

代码示例2
use Illuminate\Support\Facades\DB;

DB::transaction(function () {
    DB::update('update users set votes = 1');

    DB::delete('delete from posts');
});