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