New M3 and OTM intergations
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
use Modules\OTM\Support\ModuleInfo;
|
||||
|
||||
if (! function_exists('otm_feature_enabled')) {
|
||||
/**
|
||||
* Check if a feature is enabled in the config.
|
||||
*/
|
||||
function otm_feature_enabled(string $key): bool
|
||||
{
|
||||
return (bool) config(ModuleInfo::nameLower().".features.{$key}", false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user