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