private function isTransactionalEvent(ConnectionInterface $connection, $event)
    {
        if ($this->isPrepared($connection) && $this->transactionLevel > 0) {
            return $this->shouldHandle($event);
        }

        return false;
    }
private function isTransactionalEvent(ConnectionInterface $connection, $event)
    {
        if ($this->isPrepared($connection) && $this->transactionLevel > 0) {
            return $this->shouldHandle($event);
        }

        return false;
    }
private function isTransactionalEvent ( ConnectionInterface $ connection , $ event ) { if ( $ this -> isPrepared ( $ connection ) && $ this -> transactionLevel > 0 ) { return $ this -> shouldHandle ( $ event ) ; } return false ; }
Check whether an event is a transactional event or not.

@param  \Illuminate\Database\ConnectionInterface  $connection
@param  string|object $event
@return bool
Check whether an event is a transactional event or not .