From a3562953123946996a503159199d6742d5534e61 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 21 Mar 2024 18:12:29 +0000 Subject: [PATCH] Fixes defaults on confirm (#265) --- src/AuthCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AuthCommand.php b/src/AuthCommand.php index 9498193..564bf94 100644 --- a/src/AuthCommand.php +++ b/src/AuthCommand.php @@ -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 { @@ -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 {