From 1606c2b43ef030e002eb767fd8961578e9e4079f Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Sun, 17 Nov 2024 10:15:47 -0500 Subject: [PATCH] Normalize paths for windows --- src/Support/AutoloadManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Support/AutoloadManager.php b/src/Support/AutoloadManager.php index ad66b74..6271a26 100644 --- a/src/Support/AutoloadManager.php +++ b/src/Support/AutoloadManager.php @@ -120,14 +120,14 @@ public function getAllLayerPaths(): array DomainResolver::domainPath(), DomainResolver::applicationLayerPath(), ...array_values(config('ddd.layers', [])), - ])->map(fn ($path) => $this->app->basePath($path))->toArray(); + ])->map(fn ($path) => Path::normalize($this->app->basePath($path)))->toArray(); } protected function getCustomLayerPaths(): array { return collect([ ...array_values(config('ddd.layers', [])), - ])->map(fn ($path) => $this->app->basePath($path))->toArray(); + ])->map(fn ($path) => Path::normalize($this->app->basePath($path)))->toArray(); } protected function handleProviders()