Skip to content

Commit

Permalink
command output with more info
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb committed Mar 11, 2020
1 parent 175073f commit 827a849
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Commands/MorphCleanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ protected function captureEvents()
Event::listen(
RelationMorphFromModelWasCleaned::class,
function (RelationMorphFromModelWasCleaned $event) {
$this->comment(sprintf(
"\t- From relation %s: %d %s",
$this->info(sprintf(
"\t✔ Clean model %s in the table %s: %d %s.",
get_class($event->model),
$event->relation->getRelated()->getTable(),
$event->numDeleted,
$event->dryRun ? 'rows to remove' : 'rows cleaned'
Expand Down

0 comments on commit 827a849

Please sign in to comment.