From a6110319951a7bee66ead8674528d912792aa968 Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Fri, 22 Nov 2024 22:01:52 -0500 Subject: [PATCH] Attempt normalizing path. --- src/Commands/DomainControllerMakeCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);