mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 14: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()
|
||||
->cursor()
|
||||
->each(function (Tenant $tenant) {
|
||||
$this->line(
|
||||
"[Tenant] id: {$tenant['id']}" .
|
||||
($tenant->domains ? ' @ ' . implode('; ', $tenant->domains->pluck('domain')->toArray() ?? []) : '')
|
||||
);
|
||||
if ($tenant->domains) {
|
||||
$this->line("[Tenant] id: {$tenant['id']} @ " . implode('; ', $tenant->domains->pluck('domain')->toArray() ?? []));
|
||||
} else {
|
||||
$this->line("[Tenant] id: {$tenant['id']}");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue