protected function parseSchemaAndTable($table)
    {
        $table = explode('.', $table);

        if (is_array($schema = $this->connection->getConfig('schema'))) {
            if (in_array($table[0], $schema)) {
                return [array_shift($table), implode('.', $table)];
            }

            $schema = head($schema);
        }

        return [$schema ?: 'public', implode('.', $table)];
    }
protected function parseSchemaAndTable($table)
    {
        $table = explode('.', $table);

        if (is_array($schema = $this->connection->getConfig('schema'))) {
            if (in_array($table[0], $schema)) {
                return [array_shift($table), implode('.', $table)];
            }

            $schema = head($schema);
        }

        return [$schema ?: 'public', implode('.', $table)];
    }
protected function parseSchemaAndTable ( $ table ) { $ table = explode ( '.' , $ table ) ; if ( is_array ( $ schema = $ this -> connection -> getConfig ( 'schema' ) ) ) { if ( in_array ( $ table [ 0 ] , $ schema ) ) { return [ array_shift ( $ table ) , implode ( '.' , $ table ) ] ; } $ schema = head ( $ schema ) ; } return [ $ schema ? : 'public' , implode ( '.' , $ table ) ] ; }
Parse the table name and extract the schema and table.

@param  string  $table
@return array
Parse the table name and extract the schema and table .