mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 02:54:03 +00:00
array map -> foreach
This commit is contained in:
parent
f5bbcab9af
commit
7cfd4da6ba
1 changed files with 2 additions and 2 deletions
|
|
@ -19,11 +19,11 @@ trait TenantAwareCommand
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
array_map(function (Tenant $tenant) {
|
foreach ($tenants as $tenant) {
|
||||||
$tenant->run(function () {
|
$tenant->run(function () {
|
||||||
$this->laravel->call([$this, 'handle']);
|
$this->laravel->call([$this, 'handle']);
|
||||||
});
|
});
|
||||||
}, $tenants);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue