Skip to content

Glossary: Laravel

Transaction

Also written: DB::transaction, database transaction

A group of database changes that commit together or not at all. If anything throws inside DB::transaction(), every row saved is rolled back, so an order is never left without its items.

Where the book teaches it

Related terms

ExceptionModel