Skip to content

Commit

Permalink
Attempt normalizing path.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Nov 23, 2024
1 parent 033c2bc commit a611031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/DomainControllerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit a611031

Please sign in to comment.