src/Prettus/Repository/Generators/Migrations/SchemaParser.php
public function parse($schema)
    {
        $this->schema = $schema;
        $parsed = [];
        foreach ($this->getSchemas() as $schemaArray) {
            $column = $this->getColumn($schemaArray);
            $attributes = $this->getAttributes($column, $schemaArray);
            $parsed[$column] = $attributes;
        }

        return $parsed;
    }
public function parse($schema)
    {
        $this->schema = $schema;
        $parsed = [];
        foreach ($this->getSchemas() as $schemaArray) {
            $column = $this->getColumn($schemaArray);
            $attributes = $this->getAttributes($column, $schemaArray);
            $parsed[$column] = $attributes;
        }

        return $parsed;
    }
public function parse ( $ schema ) { $ this -> schema = $ schema ; $ parsed = [ ] ; foreach ( $ this -> getSchemas ( ) as $ schemaArray ) { $ column = $ this -> getColumn ( $ schemaArray ) ; $ attributes = $ this -> getAttributes ( $ column , $ schemaArray ) ; $ parsed [ $ column ] = $ attributes ; } return $ parsed ; }
Parse a string to array of formatted schema.

@param  string $schema

@return array
Parse a string to array of formatted schema .