From cec46b075444257eb440916d2591d4f32d35404e Mon Sep 17 00:00:00 2001 From: Vadim Date: Wed, 16 Aug 2017 16:06:07 +0300 Subject: [PATCH] [5.5] Fix problems with commands load in Windows (#20595) --- src/Illuminate/Foundation/Console/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Console/Kernel.php b/src/Illuminate/Foundation/Console/Kernel.php index 92efc7139f6f..349f4ed78759 100644 --- a/src/Illuminate/Foundation/Console/Kernel.php +++ b/src/Illuminate/Foundation/Console/Kernel.php @@ -215,7 +215,7 @@ protected function load($paths) $command = $namespace.str_replace( ['/', '.php'], ['\\', ''], - Str::after($command->getPathname(), app_path().'/') + Str::after($command->getPathname(), app_path().DIRECTORY_SEPARATOR) ); if (is_subclass_of($command, Command::class)) {