Skip to content

Commit

Permalink
Attempt fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Nov 9, 2024
1 parent a48ceab commit 7d7c611
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/Commands/DomainControllerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected function buildClass($name)
$appRootNamespace = $this->laravel->getNamespace();
$pathToAppBaseController = parent::getPath("Http\Controllers\Controller");

$baseControllerExists = file_exists($pathToAppBaseController);
$baseControllerExists = $this->files->exists($pathToAppBaseController);

if ($baseControllerExists) {
$controllerClass = class_basename($name);
Expand Down
3 changes: 0 additions & 3 deletions tests/Generator/ControllerMakeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,6 @@
->toContain("namespace {$expectedNamespace};")
->not->toContain("use App\Http\Controllers\Controller;")
->not->toContain('extends Controller');

// Reset the application skeleton
$this->setupTestApplication();
})->with([
'Invoicing:InvoiceController' => [
'Invoicing',
Expand Down

0 comments on commit 7d7c611

Please sign in to comment.