From 930b59d2ac8273a5d7a1a84e3337306bdba5e0d1 Mon Sep 17 00:00:00 2001 From: Orkhan Ahmadov Date: Wed, 17 Jan 2024 10:22:02 +0100 Subject: [PATCH] fixes --- src/Commands/RecordDeleteCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Commands/RecordDeleteCommand.php b/src/Commands/RecordDeleteCommand.php index 7d8e651..8871eea 100644 --- a/src/Commands/RecordDeleteCommand.php +++ b/src/Commands/RecordDeleteCommand.php @@ -4,6 +4,7 @@ use Laravel\VaporCli\Helpers; use Symfony\Component\Console\Input\InputArgument; +use Symfony\Component\Console\Input\InputOption; class RecordDeleteCommand extends Command { @@ -32,7 +33,7 @@ protected function configure() public function handle() { $forceDeletion = $this->option('force', false); - + if (! $forceDeletion && ! Helpers::confirm('Are you sure you want to delete this record', false)) { Helpers::abort('Action cancelled.'); }