New M3 and OTM intergations

This commit is contained in:
Mark Gregory
2026-09-15 14:31:13 +01:00
parent be28c4feec
commit 79f52acaa3
76 changed files with 1006 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
use Modules\M3\Support\ModuleInfo;
if (! function_exists('m3_feature_enabled')) {
/**
* Check if a feature is enabled in the config.
*/
function m3_feature_enabled(string $key): bool
{
return (bool) config(ModuleInfo::nameLower().".features.{$key}", false);
}
}