protected function prepareTransaction($connection)
    {
        $connectionId = $connection->getName();
        $this->transactionLevel = $this->transactionLevel > 0 ? $this->transactionLevel + 1 : 1;

        // Now we prepare a new array level for this transaction in the current
        // transaction level. It allows nested transactions to rollback and
        // their events discarded without affecting previous transactions.
        $this->pendingEvents[$connectionId][$this->transactionLevel][] = [];
    }
protected function prepareTransaction($connection)
    {
        $connectionId = $connection->getName();
        $this->transactionLevel = $this->transactionLevel > 0 ? $this->transactionLevel + 1 : 1;

        // Now we prepare a new array level for this transaction in the current
        // transaction level. It allows nested transactions to rollback and
        // their events discarded without affecting previous transactions.
        $this->pendingEvents[$connectionId][$this->transactionLevel][] = [];
    }
protected function prepareTransaction ( $ connection ) { $ connectionId = $ connection -> getName ( ) ; $ this -> transactionLevel = $ this -> transactionLevel > 0 ? $ this -> transactionLevel + 1 : 1 ; // Now we prepare a new array level for this transaction in the current // transaction level. It allows nested transactions to rollback and // their events discarded without affecting previous transactions. $ this -> pendingEvents [ $ connectionId ] [ $ this -> transactionLevel ] [ ] = [ ] ; }
Prepare to store events for the current transaction.

@param  \Illuminate\Database\ConnectionInterface  $connection
@return void
Prepare to store events for the current transaction .