public static function deleteColumn(string $tableName, string $column)
    {
        if(Schema::hasTable($tableName)) {
            Schema::table(
                $tableName, function ($table) use ($tableName, $column) {
                    if(Schema::hasColumn($tableName, $column)) {
                        $table->dropColumn($column);
                    }
                }
            );
        }
    }
public static function deleteColumn(string $tableName, string $column)
    {
        if(Schema::hasTable($tableName)) {
            Schema::table(
                $tableName, function ($table) use ($tableName, $column) {
                    if(Schema::hasColumn($tableName, $column)) {
                        $table->dropColumn($column);
                    }
                }
            );
        }
    }
public static function deleteColumn ( string $ tableName , string $ column ) { if ( Schema :: hasTable ( $ tableName ) ) { Schema :: table ( $ tableName , function ( $ table ) use ( $ tableName , $ column ) { if ( Schema :: hasColumn ( $ tableName , $ column ) ) { $ table -> dropColumn ( $ column ) ; } } ) ; } }
Delete column from the database

@param string $tableName
@param string $column
Delete column from the database