src/Way/Generators/Syntax/AddToTable.php
public function add($migrationData, array $fields)
    {
        if ( ! isset($migrationData['method']))
        {
            $migrationData['method'] = 'table';
        }

        $compiled = $this->compiler->compile($this->getTemplate(), $migrationData);

        return $this->replaceFieldsWith($this->addColumns($fields), $compiled);
    }
public function add($migrationData, array $fields)
    {
        if ( ! isset($migrationData['method']))
        {
            $migrationData['method'] = 'table';
        }

        $compiled = $this->compiler->compile($this->getTemplate(), $migrationData);

        return $this->replaceFieldsWith($this->addColumns($fields), $compiled);
    }
public function add ( $ migrationData , array $ fields ) { if ( ! isset ( $ migrationData [ 'method' ] ) ) { $ migrationData [ 'method' ] = 'table' ; } $ compiled = $ this -> compiler -> compile ( $ this -> getTemplate ( ) , $ migrationData ) ; return $ this -> replaceFieldsWith ( $ this -> addColumns ( $ fields ) , $ compiled ) ; }
Add syntax for table addition

@param $migrationData
@param array $fields
@return mixed
Add syntax for table addition