DatabaseTransactionRecord
class DatabaseTransactionRecord (View source)
Properties
| string | $connection | The name of the database connection. |
|
| int | $level | The transaction level. |
|
| protected array | $callbacks | The callbacks that should be executed after committing. |
Methods
void
__construct(string $connection, int $level)
Create a new database transaction record instance.
void
addCallback(callable $callback)
Register a callback to be executed after committing.
void
executeCallbacks()
Execute all of the callbacks.
array
getCallbacks()
Get all of the callbacks.
Details
void
__construct(string $connection, int $level)
Create a new database transaction record instance.
void
addCallback(callable $callback)
Register a callback to be executed after committing.
void
executeCallbacks()
Execute all of the callbacks.
array
getCallbacks()
Get all of the callbacks.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.