cretueusebiu/valet-windows

I got "Notice: Constant VALET_STATIC_PREFIX already defined in ...\vendor\cretueusebiu\valet-windows\cli\includes\helpers.php on line 20

RamaWasudewa opened this issue · 0 comments

After finish install cretueusebiu/valet-windows and configure setting, I try to access my project using domain.test and I got "Notice: Constant VALET_HOME_PATH already defined in D:\User\WEB\apotek\vendor\cretueusebiu\valet-windows\cli\includes\helpers.php on line 20" and "Notice: Constant VALET_STATIC_PREFIX already defined in D:\User\WEB\apotek\vendor\cretueusebiu\valet-windows\cli\includes\helpers.php on line 22" there are my code in helpers.php

if (! isset($_SERVER['HOME'])) {
    $_SERVER['HOME'] = $_SERVER['USERPROFILE'];
}

$_SERVER['HOME'] = str_replace('\\', '/', $_SERVER['HOME']);

/*
 * Define the ~/.config/valet path as a constant.
 */
define('VALET_HOME_PATH', $_SERVER['HOME'].'/.config/valet');
define('VALET_SERVER_PATH', str_replace('\\', '/', realpath(__DIR__.'/../../server.php')));
define('VALET_STATIC_PREFIX', '41c270e4-5535-4daa-b23e-c269744c2f45');

define('VALET_LEGACY_HOME_PATH', $_SERVER['HOME'].'/.valet');