diff --git a/src/Illuminate/Foundation/Console/ListenerMakeCommand.php b/src/Illuminate/Foundation/Console/ListenerMakeCommand.php index c5fcae035709..b27e7986336e 100644 --- a/src/Illuminate/Foundation/Console/ListenerMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ListenerMakeCommand.php @@ -47,7 +47,7 @@ protected function buildClass($name) 'Illuminate', '\\', ])) { - $event = $this->laravel->getNamespace().'Events\\'.$event; + $event = $this->laravel->getNamespace().'Events\\'.str_replace('/', '\\', $event); } $stub = str_replace(