라라벨 (Transaction) - Database Transaction 코드
\DB::beginTransaction();

try {
   ...
  \DB::commit();
} catch (\Throwable $e) {
  ...
  \DB::rollback();
}
  • share