Mellivora/Database/Concerns/ManagesTransactions.php
protected function createTransaction()
    {
        if ($this->transactions === 0) {
            try {
                $this->getPdo()->beginTransaction();
            } catch (Exception $e) {
                $this->handleBeginTransactionException($e);
            }
        } elseif ($this->transactions >= 1 && $this->queryGrammar->supportsSavepoints()) {
            $this->createSavepoint();
        }
    }
protected function createTransaction()
    {
        if ($this->transactions === 0) {
            try {
                $this->getPdo()->beginTransaction();
            } catch (Exception $e) {
                $this->handleBeginTransactionException($e);
            }
        } elseif ($this->transactions >= 1 && $this->queryGrammar->supportsSavepoints()) {
            $this->createSavepoint();
        }
    }
protected function createTransaction ( ) { if ( $ this -> transactions === 0 ) { try { $ this -> getPdo ( ) -> beginTransaction ( ) ; } catch ( Exception $ e ) { $ this -> handleBeginTransactionException ( $ e ) ; } } elseif ( $ this -> transactions >= 1 && $ this -> queryGrammar -> supportsSavepoints ( ) ) { $ this -> createSavepoint ( ) ; } }
Create a transaction within the database.

@return void
Create a transaction within the database .