trait ManagesTransactions (View source)
mixed | transaction(Closure $callback, int $attempts = 1) Execute a Closure within a transaction. | |
void | beginTransaction() Start a new database transaction. | |
void | commit() Commit the active database transaction. | |
void | rollBack(int|null $toLevel = null) Rollback the active database transaction. | |
int | transactionLevel() Get the number of active transactions. |
Execute a Closure within a transaction.
Start a new database transaction.
Commit the active database transaction.
Rollback the active database transaction.
Get the number of active transactions.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Database/Concerns/ManagesTransactions.html