Nwidart\Modules\Support\Migrations\SchemaParser::removeColumn PHP Method

removeColumn() protected method

Format field to script.
protected removeColumn ( integer $key, string $field, string $column ) : string
$key integer
$field string
$column string
return string
    protected function removeColumn($key, $field, $column)
    {
        if ($this->hasCustomAttribute($column)) {
            return '->' . $field;
        }
        return '->dropColumn(' . "'" . $column . "')";
    }