Why we need DB::rollback()
when we can execute multiple queries without using it. Such as follows:
DB::beginTransaction();
//database queries here
DB::commit();
In the above case, even if any statement fails, commit will never hit, and the transaction won't process.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire