new helpdesk module
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
<?php
|
||||
use Modules\Helpdesk\Support\ModuleInfo;
|
||||
|
||||
if (! function_exists('helpdesk_feature_enabled')) {
|
||||
declare(strict_types=1);
|
||||
|
||||
if (! function_exists('helpdesk_module_name')) {
|
||||
/**
|
||||
* Check if a feature is enabled in the config.
|
||||
* Return the Helpdesk module name.
|
||||
*/
|
||||
function helpdesk_feature_enabled(string $key): bool
|
||||
function helpdesk_module_name(): string
|
||||
{
|
||||
return (bool) config(ModuleInfo::nameLower().".features.{$key}", false);
|
||||
return 'Helpdesk';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user