28 lines
453 B
PHP
28 lines
453 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Support;
|
||
|
|
||
|
use Nwidart\Modules\Facades\Module;
|
||
|
|
||
|
/**
|
||
|
* Global utilities
|
||
|
*/
|
||
|
class Utils
|
||
|
{
|
||
|
/**
|
||
|
* Is the installer enabled?
|
||
|
*
|
||
|
* @return bool
|
||
|
*/
|
||
|
public static function installerEnabled()
|
||
|
{
|
||
|
/** @var \Nwidart\Modules\Module $installer */
|
||
|
$installer = Module::find('installer');
|
||
|
if (!$installer) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return $installer->isEnabled();
|
||
|
}
|
||
|
}
|