diff --git a/src/Illuminate/Foundation/Console/Kernel.php b/src/Illuminate/Foundation/Console/Kernel.php index 874f4062d871..9c880b2a2950 100644 --- a/src/Illuminate/Foundation/Console/Kernel.php +++ b/src/Illuminate/Foundation/Console/Kernel.php @@ -19,7 +19,6 @@ use Illuminate\Support\Carbon; use Illuminate\Support\Env; use Illuminate\Support\InteractsWithTime; -use Illuminate\Support\Str; use ReflectionClass; use SplFileInfo; use Symfony\Component\Console\ConsoleEvents; @@ -385,7 +384,7 @@ protected function load($paths) protected function commandClassFromFile(SplFileInfo $file): string { return implode( - "\\", + '\\', array_map( 'ucfirst', explode(DIRECTORY_SEPARATOR, substr($file->getRealPath(), strlen($this->app->basePath()) + 1, -4)),