class
Illuminate
/
Database
/
DatabaseTransactionsManager
You are viewing an older version of the documentation. For the latest, please visit master documentation.
DatabaseTransactionsManager
Properties
Methods
public
__construct ( ) : void
Create a new database transactions manager instance.
public
begin ( $connection , $level ) : void
Start a new database transaction.
Parameters
- $connection string
- $level int
public
rollback ( $connection , $level ) : void
Rollback the active database transaction.
Parameters
- $connection string
- $level int
public
commit ( $connection ) : void
Commit the active database transaction.
Parameters
- $connection string
public
addCallback ( $callback ) : void
Register a transaction callback.
Parameters
- $callback callable