ManagesTransactions
trait ManagesTransactions (View source)
Methods
| mixed |  transaction(Closure $callback, int $attempts = 1)  Execute a Closure within a transaction.  |  |
| void |  handleTransactionException(Exception $e, int $currentAttempt, int $maxAttempts)  Handle an exception encountered when running a transacted statement.  |  |
| void |  beginTransaction()  Start a new database transaction.  |  |
| void |  createTransaction()  Create a transaction within the database.  |  |
| void |  createSavepoint()  Create a save point within the database.  |  |
| void |  handleBeginTransactionException(Exception $e)  Handle an exception from a transaction beginning.  |  |
| void |  commit()  Commit the active database transaction.  |  |
| void |  rollBack(int|null $toLevel = null)  Rollback the active database transaction.  |  |
| void |  performRollBack(int $toLevel)  Perform a rollback within the database.  |  |
| int |  transactionLevel()  Get the number of active transactions.  |  
Details
mixed transaction(Closure $callback, int $attempts = 1)
Execute a Closure within a transaction.
protected void handleTransactionException(Exception $e, int $currentAttempt, int $maxAttempts)
Handle an exception encountered when running a transacted statement.
void beginTransaction()
Start a new database transaction.
protected void createTransaction()
Create a transaction within the database.
protected void createSavepoint()
Create a save point within the database.
protected void handleBeginTransactionException(Exception $e)
Handle an exception from a transaction beginning.
void commit()
Commit the active database transaction.
void rollBack(int|null $toLevel = null)
Rollback the active database transaction.
protected void performRollBack(int $toLevel)
Perform a rollback within the database.
int transactionLevel()
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.5/Illuminate/Database/Concerns/ManagesTransactions.html