$source, 'label' => trim((string) ($definition['label'] ?? $source)) ?: $source, 'config' => $configKey, ]; } public function value(string $source, string $path, mixed $default = null): mixed { $definition = $this->definition($source); $suffix = trim($path, '.'); $key = $definition['config'] . ($suffix === '' ? '' : '.' . $suffix); return config($key, $default); } public function enabled(string $source): bool { return (bool) $this->value($source, 'enabled', false); } }