Skip to content

Commit 827a849

Browse files
committed
command output with more info
1 parent 175073f commit 827a849

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Commands/MorphCleanCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ protected function captureEvents()
2828
Event::listen(
2929
RelationMorphFromModelWasCleaned::class,
3030
function (RelationMorphFromModelWasCleaned $event) {
31-
$this->comment(sprintf(
32-
"\t- From relation %s: %d %s",
31+
$this->info(sprintf(
32+
"\t✔ Clean model %s in the table %s: %d %s.",
33+
get_class($event->model),
3334
$event->relation->getRelated()->getTable(),
3435
$event->numDeleted,
3536
$event->dryRun ? 'rows to remove' : 'rows cleaned'

0 commit comments

Comments
 (0)