public function collectTransactionEvent($event, $connection)
    {
        $source = [];

        if ($this->findSource) {
            try {
                $source = $this->findSource();
            } catch (\Exception $e) {
            }
        }

        $this->queries[] = [
            'query' => $event,
            'type' => 'transaction',
            'bindings' => [],
            'time' => 0,
            'source' => $source,
            'explain' => [],
            'connection' => $connection->getDatabaseName(),
            'hints' => null,
        ];
    }
public function collectTransactionEvent($event, $connection)
    {
        $source = [];

        if ($this->findSource) {
            try {
                $source = $this->findSource();
            } catch (\Exception $e) {
            }
        }

        $this->queries[] = [
            'query' => $event,
            'type' => 'transaction',
            'bindings' => [],
            'time' => 0,
            'source' => $source,
            'explain' => [],
            'connection' => $connection->getDatabaseName(),
            'hints' => null,
        ];
    }
public function collectTransactionEvent ( $ event , $ connection ) { $ source = [ ] ; if ( $ this -> findSource ) { try { $ source = $ this -> findSource ( ) ; } catch ( \ Exception $ e ) { } } $ this -> queries [ ] = [ 'query' => $ event , 'type' => 'transaction' , 'bindings' => [ ] , 'time' => 0 , 'source' => $ source , 'explain' => [ ] , 'connection' => $ connection -> getDatabaseName ( ) , 'hints' => null , ] ; }
Collect a database transaction event.
@param  string $event
@param \Illuminate\Database\Connection $connection
@return array
Collect a database transaction event .