protected function addColumn($key, $field, $column)
{
if ($this->hasCustomAttribute($column)) {
return '->' . $field;
}
if ($key == 0) {
return '->' . $field . "('" . $column . "')";
}
if (str_contains($field, '(')) {
return '->' . $field;
}
return '->' . $field . '()';
}