Skip to content

Commit a356295

Browse files
authored
Fixes defaults on confirm (#265)
1 parent 0b740d5 commit a356295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AuthCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected function exportBackend()
118118
$controller = app_path('Http/Controllers/HomeController.php');
119119

120120
if (file_exists($controller) && ! $this->option('force')) {
121-
if ($this->components->confirm("The [HomeController.php] file already exists. Do you want to replace it?")) {
121+
if ($this->components->confirm("The [HomeController.php] file already exists. Do you want to replace it?", true)) {
122122
file_put_contents($controller, $this->compileStub('controllers/HomeController'));
123123
}
124124
} else {
@@ -128,7 +128,7 @@ protected function exportBackend()
128128
$baseController = app_path('Http/Controllers/Controller.php');
129129

130130
if (file_exists($baseController) && ! $this->option('force')) {
131-
if ($this->components->confirm("The [Controller.php] file already exists. Do you want to replace it?")) {
131+
if ($this->components->confirm("The [Controller.php] file already exists. Do you want to replace it?", true)) {
132132
file_put_contents($baseController, $this->compileStub('controllers/Controller'));
133133
}
134134
} else {

0 commit comments

Comments
 (0)