src/Components/DbSchemaExtras.php
public function getSchemaExtrasForFields($table_name, $field_names = '*', $select = '*')
    {
        if (empty($field_names)) {
            return [];
        }

        if ('*' === $field_names) {
            $result = DbFieldExtras::whereServiceId($this->getServiceId())
                ->whereTable($table_name)->get()->toArray();
        } else {
            if (false === $values = static::validateAsArray($field_names, ',', true)) {
                throw new \InvalidArgumentException('Invalid field list. ' . $field_names);
            }

            $result = DbFieldExtras::whereServiceId($this->getServiceId())
                ->whereTable($table_name)->whereIn('field', $values)->get((array)$select)->toArray();
        }

        return $result;
    }
public function getSchemaExtrasForFields($table_name, $field_names = '*', $select = '*')
    {
        if (empty($field_names)) {
            return [];
        }

        if ('*' === $field_names) {
            $result = DbFieldExtras::whereServiceId($this->getServiceId())
                ->whereTable($table_name)->get()->toArray();
        } else {
            if (false === $values = static::validateAsArray($field_names, ',', true)) {
                throw new \InvalidArgumentException('Invalid field list. ' . $field_names);
            }

            $result = DbFieldExtras::whereServiceId($this->getServiceId())
                ->whereTable($table_name)->whereIn('field', $values)->get((array)$select)->toArray();
        }

        return $result;
    }
@param string         $table_name
@param string | array $field_names
@param string | array $select

@throws \InvalidArgumentException
@return array