DB::beginTransaction(); try { /** Statement */ DB::commit(); } catch (Exception $e) { /** Statement if failed */ DB::rollback(); }