src/Components/SupportsExtraDbConfigs.php
public static function getConfig($id, $local_config = null, $protect = true)
    {
        $config = parent::getConfig($id, $local_config, $protect);
        if ($cacheConfig = ServiceCacheConfig::whereServiceId($id)->first()) {
            $config = array_merge($config, $cacheConfig->toArray());
        }

        $config['allow_upsert'] = filter_var(array_get($local_config, 'allow_upsert'), FILTER_VALIDATE_BOOLEAN);
        $config['max_records'] = filter_var(array_get($local_config, 'max_records'), FILTER_VALIDATE_INT);

        return $config;
    }
public static function getConfig($id, $local_config = null, $protect = true)
    {
        $config = parent::getConfig($id, $local_config, $protect);
        if ($cacheConfig = ServiceCacheConfig::whereServiceId($id)->first()) {
            $config = array_merge($config, $cacheConfig->toArray());
        }

        $config['allow_upsert'] = filter_var(array_get($local_config, 'allow_upsert'), FILTER_VALIDATE_BOOLEAN);
        $config['max_records'] = filter_var(array_get($local_config, 'max_records'), FILTER_VALIDATE_INT);

        return $config;
    }
{@inheritdoc}