diff --git a/src/Certificate.php b/src/Certificate.php index 4d69ebd..5652ded 100644 --- a/src/Certificate.php +++ b/src/Certificate.php @@ -50,6 +50,10 @@ public static function paths(): array */ public static function herdPath(): string { + if (PHP_OS_FAMILY === 'Windows') { + return implode(DIRECTORY_SEPARATOR, [getenv('USERPROFILE') ?: $_SERVER['HOME'] ?? '', '.config', 'herd', 'config', 'valet', 'Certificates', '']); + } + return implode(DIRECTORY_SEPARATOR, [$_SERVER['HOME'] ?? '', 'Library', 'Application Support', 'Herd', 'config', 'valet', 'Certificates', '']); }