Skip to content

Commit bb2d665

Browse files
committed
Fixes stubs
1 parent b3fa5a6 commit bb2d665

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/AuthCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,20 @@ protected function exportBackend()
117117

118118
if (file_exists($controller) && ! $this->option('force')) {
119119
if ($this->components->confirm("The [HomeController.php] file already exists. Do you want to replace it?")) {
120-
file_put_contents($controller, $this->compileControllerStub('HomeController.php'));
120+
file_put_contents($controller, $this->compileControllerStub('HomeController'));
121121
}
122122
} else {
123-
file_put_contents($controller, $this->compileControllerStub('HomeController.php'));
123+
file_put_contents($controller, $this->compileControllerStub('HomeController'));
124124
}
125125

126126
$baseController = app_path('Http/Controllers/Controller.php');
127127

128128
if (file_exists($baseController) && ! $this->option('force')) {
129129
if ($this->components->confirm("The [Controller.php] file already exists. Do you want to replace it?")) {
130-
file_put_contents($baseController, $this->compileControllerStub('Controller.php'));
130+
file_put_contents($baseController, $this->compileControllerStub('Controller'));
131131
}
132132
} else {
133-
file_put_contents($baseController, $this->compileControllerStub('Controller.php'));
133+
file_put_contents($baseController, $this->compileControllerStub('Controller'));
134134
}
135135

136136
file_put_contents(

0 commit comments

Comments
 (0)