Files
WMS/Modules/Company/Helpers/Helper.php
T
2026-07-02 10:36:12 +01:00

13 lines
318 B
PHP

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