new companies Module

This commit is contained in:
Mark Gregory
2026-07-02 10:36:12 +01:00
parent b8a9ab2e24
commit b87036e1a2
40 changed files with 503 additions and 11 deletions
+12
View File
@@ -0,0 +1,12 @@
<?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);
}
}