src/Migration.php
protected function dropColumn(string $tableName, string $column) : void
    {
        // Check for its existence before dropping
        if (! $this->schema->hasColumn($tableName, $column)) {
            return;
        }

        $this->schema->table($tableName, function (Blueprint $table) use ($column) {
            $table->dropColumn($column);
        });
    }
protected function dropColumn(string $tableName, string $column) : void
    {
        // Check for its existence before dropping
        if (! $this->schema->hasColumn($tableName, $column)) {
            return;
        }

        $this->schema->table($tableName, function (Blueprint $table) use ($column) {
            $table->dropColumn($column);
        });
    }
protected function dropColumn ( string $ tableName , string $ column ) : void { // Check for its existence before dropping if ( ! $ this -> schema -> hasColumn ( $ tableName , $ column ) ) { return ; } $ this -> schema -> table ( $ tableName , function ( Blueprint $ table ) use ( $ column ) { $ table -> dropColumn ( $ column ) ; } ) ; }
Safely drop a column from a table.

@param string $tableName
@param string $column

@return void
Safely drop a column from a table .