Files
WMS/Modules/ChatGPT/Helpers/Helper.php
T
2026-09-21 10:14:57 +01:00

14 lines
321 B
PHP
Executable File

<?php
use Modules\ChatGPT\Support\ModuleInfo;
if (! function_exists('chatgpt_feature_enabled')) {
/**
* Check if a feature is enabled in the config.
*/
function chatgpt_feature_enabled(string $key): bool
{
return (bool) config(ModuleInfo::nameLower() . ".features.{$key}", false);
}
}