diff --git a/src/Commands/MigrateFresh.php b/src/Commands/MigrateFresh.php index b626c7750..21c36cc3d 100644 --- a/src/Commands/MigrateFresh.php +++ b/src/Commands/MigrateFresh.php @@ -8,6 +8,7 @@ use Stancl\Tenancy\Concerns\DealsWithMigrations; use Stancl\Tenancy\Concerns\HasATenantsOption; use Symfony\Component\Console\Input\InputOption; +use Symfony\Component\Console\Output\NullOutput; final class MigrateFresh extends Command { @@ -46,11 +47,12 @@ public function handle() ])); $this->info('Migrating.'); - $this->callSilent('tenants:migrate', [ + $output = $this->getOutput()->isVerbose() ? $this->output : new NullOutput; + $this->runCommand('tenants:migrate', [ '--tenants' => [$tenant->getTenantKey()], '--step' => $this->option('step'), '--force' => true, - ]); + ], $output); }); $this->info('Done.');