On this page
DatabaseTransactionsManager
class DatabaseTransactionsManager (View source)
Properties
| protected Collection | $transactions | All of the recorded transactions. |
Methods
| void | __construct() Create a new database transactions manager instance. |
|
| void | begin(string $connection, int $level) Start a new database transaction. |
|
| void | rollback(string $connection, int $level) Rollback the active database transaction. |
|
| void | commit(string $connection) Commit the active database transaction. |
|
| void | addCallback(callable $callback) Register a transaction callback. |
|
| Collection | getTransactions() Get all the transactions. |
Details
void __construct()
Create a new database transactions manager instance.
void begin(string $connection, int $level)
Start a new database transaction.
void rollback(string $connection, int $level)
Rollback the active database transaction.
void commit(string $connection)
Commit the active database transaction.
void addCallback(callable $callback)
Register a transaction callback.
Collection getTransactions()
Get all the transactions.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Database/DatabaseTransactionsManager.html