mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:34:04 +00:00
update to an if/else
This commit is contained in:
parent
ddf0a40b53
commit
3b6a24f08e
1 changed files with 5 additions and 4 deletions
|
|
@ -35,10 +35,11 @@ class TenantList extends Command
|
||||||
->query()
|
->query()
|
||||||
->cursor()
|
->cursor()
|
||||||
->each(function (Tenant $tenant) {
|
->each(function (Tenant $tenant) {
|
||||||
$this->line(
|
if ($tenant->domains) {
|
||||||
"[Tenant] id: {$tenant['id']}" .
|
$this->line("[Tenant] id: {$tenant['id']} @ " . implode('; ', $tenant->domains->pluck('domain')->toArray() ?? []));
|
||||||
($tenant->domains ? ' @ ' . implode('; ', $tenant->domains->pluck('domain')->toArray() ?? []) : '')
|
} else {
|
||||||
);
|
$this->line("[Tenant] id: {$tenant['id']}");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue