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.'); }