diff --git a/src/Commands/MigrateFresh.php b/src/Commands/MigrateFresh.php index 5883372c..8fb54c52 100644 --- a/src/Commands/MigrateFresh.php +++ b/src/Commands/MigrateFresh.php @@ -42,7 +42,7 @@ final class MigrateFresh extends Command tenancy()->initialize($tenant); $this->call('db:wipe', [ - '--database' => $tenant->getDatabaseName(), + '--database' => $tenant->getDatabaseConnection(), '--force' => true, ]);