Skip to content

Commit

Permalink
Attempt fix for L10
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Nov 9, 2024
1 parent 7ca7447 commit 7740ed7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Commands/DomainControllerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ protected function buildClass($name)
if ($baseControllerExists) {
$controllerClass = class_basename($name);
$replace["\nclass {$controllerClass}\n"] = "\nuse {$appRootNamespace}Http\Controllers\Controller;\n\nclass {$controllerClass} extends Controller\n";
} else {
$replace[' extends Controller'] = '';
$rootNamespace = $this->rootNamespace();
$replace["use {$rootNamespace}Http\Controllers\Controller;\n"] = '';
}

$stub = str_replace(
Expand Down

0 comments on commit 7740ed7

Please sign in to comment.