mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 07:54:03 +00:00
Use getTenants()
This commit is contained in:
parent
1765761860
commit
cda2a57fb0
1 changed files with 2 additions and 2 deletions
|
|
@ -47,9 +47,9 @@ class Migrate extends MigrateCommand
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->option('tenants') as $tenant) {
|
foreach ($this->getTenants() as $tenant) {
|
||||||
try {
|
try {
|
||||||
tenancy()->find($tenant)->run(function ($tenant) {
|
$tenant->run(function ($tenant) {
|
||||||
$this->line("Tenant: {$tenant->getTenantKey()}");
|
$this->line("Tenant: {$tenant->getTenantKey()}");
|
||||||
|
|
||||||
event(new MigratingDatabase($tenant));
|
event(new MigratingDatabase($tenant));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue