13 lines
318 B
PHP
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);
|
|
}
|
|
}
|