diff --git a/src/Commands/Seed.php b/src/Commands/Seed.php index 2018feb8..048fd98d 100644 --- a/src/Commands/Seed.php +++ b/src/Commands/Seed.php @@ -47,11 +47,11 @@ class Seed extends SeedCommand return; } - $this->input->setOption('database', 'tenant'); - $originalTenant = tenancy()->getTenant(); tenancy()->all($this->option('tenants'))->each(function ($tenant) { $this->line("Tenant: {$tenant['id']}"); + + $this->input->setOption('database', $tenant->getDatabaseName()); tenancy()->initialize($tenant); // Seed