public function table($table, Closure $callback)
    {
        $blueprint = $this->createBlueprint($table);

        $callback($blueprint);

        foreach ($blueprint->getCommands() as $command) {
            if ($command->get('name') == 'drop') {
                $this->helper->dropAutoIncrementObjects($table);
            }
        }

        $this->build($blueprint);

        $this->comment->setComments($blueprint);
    }
public function table($table, Closure $callback)
    {
        $blueprint = $this->createBlueprint($table);

        $callback($blueprint);

        foreach ($blueprint->getCommands() as $command) {
            if ($command->get('name') == 'drop') {
                $this->helper->dropAutoIncrementObjects($table);
            }
        }

        $this->build($blueprint);

        $this->comment->setComments($blueprint);
    }
public function table ( $ table , Closure $ callback ) { $ blueprint = $ this -> createBlueprint ( $ table ) ; $ callback ( $ blueprint ) ; foreach ( $ blueprint -> getCommands ( ) as $ command ) { if ( $ command -> get ( 'name' ) == 'drop' ) { $ this -> helper -> dropAutoIncrementObjects ( $ table ) ; } } $ this -> build ( $ blueprint ) ; $ this -> comment -> setComments ( $ blueprint ) ; }
Changes an existing table on the schema.

@param  string $table
@param  Closure $callback
@return \Illuminate\Database\Schema\Blueprint
Changes an existing table on the schema .