Skip to content

Commit

Permalink
Fixes defaults on confirm (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored Mar 21, 2024
1 parent 0b740d5 commit a356295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AuthCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected function exportBackend()
$controller = app_path('Http/Controllers/HomeController.php');

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

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

0 comments on commit a356295

Please sign in to comment.