diff --git a/src/Commands/MigrateFresh.php b/src/Commands/MigrateFresh.php index 8fb54c52..9d20ec7c 100644 --- a/src/Commands/MigrateFresh.php +++ b/src/Commands/MigrateFresh.php @@ -41,10 +41,10 @@ final class MigrateFresh extends Command tenancy()->initialize($tenant); - $this->call('db:wipe', [ + $this->call('db:wipe', array_filter([ '--database' => $tenant->getDatabaseConnection(), '--force' => true, - ]); + ])); $this->call('tenants:migrate', [ '--tenants' => [$tenant->id],