Skip to content

Commit 15368c5

Browse files
authored
Merge pull request #100 from cbaconnier/fix-confirm-overwrite
Fix confirm controller overwrite
2 parents cacae40 + 3b4715e commit 15368c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/AuthCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ protected function exportBackend()
119119
if ($this->confirm("The [HomeController.php] file already exists. Do you want to replace it?")) {
120120
file_put_contents($controller, $this->compileControllerStub());
121121
}
122+
} else {
123+
file_put_contents($controller, $this->compileControllerStub());
122124
}
123125

124126
file_put_contents(

0 commit comments

Comments
 (0)