diff --git a/src/Commands/DomainControllerMakeCommand.php b/src/Commands/DomainControllerMakeCommand.php index 80f4797..e91e67f 100644 --- a/src/Commands/DomainControllerMakeCommand.php +++ b/src/Commands/DomainControllerMakeCommand.php @@ -6,6 +6,7 @@ use Lunarstorm\LaravelDDD\Commands\Concerns\ForwardsToDomainCommands; use Lunarstorm\LaravelDDD\Commands\Concerns\HasDomainStubs; use Lunarstorm\LaravelDDD\Commands\Concerns\ResolvesDomainFromInput; +use Lunarstorm\LaravelDDD\Support\Path; class DomainControllerMakeCommand extends ControllerMakeCommand { @@ -78,7 +79,7 @@ protected function buildClass($name) $replace = []; $appRootNamespace = $this->laravel->getNamespace(); - $pathToAppBaseController = app_path('Http/Controllers/Controller.php'); + $pathToAppBaseController = Path::normalize(app_path('Http/Controllers/Controller.php')); $baseControllerExists = $this->files->exists($pathToAppBaseController);