If you use DB::beginTransaction() and DB::commit() instead of the DB::transaction() closure, you might be leaving your database in a weird state when things go wrong. #php #laravel https://masteringlaravel.io/daily/2026-03-24-manual-transactions-dont-fail-the-way-youd-expect
Manual transactions don't fail the way you'd expect | Mastering Laravel

The closure does more than clean up your code

Mastering Laravel