get($pluginIdentifier, $key, $default); } catch (Throwable) { return $default; } } } if (! function_exists('plugin_settings')) { /** * 플러그인 전체 설정 조회 헬퍼 함수 * * @param string $pluginIdentifier 플러그인 식별자 (예: 'sirsoft-daum_postcode') * @return array 설정값 배열 * * @example * // 전체 설정 조회 * $settings = plugin_settings('sirsoft-daum_postcode'); */ function plugin_settings(string $pluginIdentifier): array { try { $service = app(PluginSettingsService::class); return $service->get($pluginIdentifier) ?? []; } catch (Throwable) { return []; } } }