Files
WMS/Modules/AuditTrail/Helpers/Helper.php
T
2026-06-23 13:39:02 +01:00

14 lines
330 B
PHP

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