Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/CleanActivitylogCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ class CleanActivitylogCommand extends Command

public function handle()
{
// If the environment is set to production and the --force option is not provided,
// the cleanup operation will not proceed.
if (! $this->confirmToProceed()) {
return 1;
return Command::FAILURE;
}

$this->comment('Cleaning activity log...');
Expand All @@ -44,5 +46,7 @@ public function handle()
$this->info("Deleted {$amountDeleted} record(s) from the activity log.");

$this->comment('All done!');

return Command::SUCCESS;
}
}