1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 08:14:02 +00:00

array map -> foreach

This commit is contained in:
Samuel Štancl 2019-11-08 16:55:19 +01:00
parent f5bbcab9af
commit 7cfd4da6ba

View file

@ -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); }
} }
/** /**