public function compileAdd(Blueprint $blueprint, Fluent $command)
    {
        $columns = $this->prefixArray('add column', $this->getColumns($blueprint));

        return collect($columns)->map(function ($column) use ($blueprint) {
            return 'alter table '.$this->wrapTable($blueprint).' '.$column;
        })->all();
    }
public function compileAdd(Blueprint $blueprint, Fluent $command)
    {
        $columns = $this->prefixArray('add column', $this->getColumns($blueprint));

        return collect($columns)->map(function ($column) use ($blueprint) {
            return 'alter table '.$this->wrapTable($blueprint).' '.$column;
        })->all();
    }
public function compileAdd ( Blueprint $ blueprint , Fluent $ command ) { $ columns = $ this -> prefixArray ( 'add column' , $ this -> getColumns ( $ blueprint ) ) ; return collect ( $ columns ) -> map ( function ( $ column ) use ( $ blueprint ) { return 'alter table ' . $ this -> wrapTable ( $ blueprint ) . ' ' . $ column ; } ) -> all ( ) ; }
Compile alter table commands for adding columns.

@param  \Illuminate\Database\Schema\Blueprint  $blueprint
@param  \Illuminate\Support\Fluent  $command
@return array
Compile alter table commands for adding columns .