Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
orkhanahmadov authored Jan 17, 2024
1 parent 8d1b830 commit 930b59d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/RecordDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Laravel\VaporCli\Helpers;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

class RecordDeleteCommand extends Command
{
Expand Down Expand Up @@ -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.');
}
Expand Down

0 comments on commit 930b59d

Please sign in to comment.