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()