From 26751a9be294f01132a946af5006d3169e0f2c63 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Wed, 11 Dec 2024 15:39:15 -0500 Subject: [PATCH] [5.x] Fix subdirectory autodiscovery on Windows (#11246) --- src/Providers/ExtensionServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Providers/ExtensionServiceProvider.php b/src/Providers/ExtensionServiceProvider.php index 2a32a74bc2..92432a21c5 100644 --- a/src/Providers/ExtensionServiceProvider.php +++ b/src/Providers/ExtensionServiceProvider.php @@ -336,7 +336,7 @@ protected function registerAppExtensions($folder, $requiredClass) } foreach ($this->app['files']->allFiles($path) as $file) { - $relativePathOfFolder = str_replace(app_path('/'), '', $file->getPath()); + $relativePathOfFolder = str_replace(app_path(DIRECTORY_SEPARATOR), '', $file->getPath()); $namespace = str_replace('/', '\\', $relativePathOfFolder); $class = $file->getBasename('.php');