mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 19:34:04 +00:00
Fix tenants:list when not using multi-domain tenancy
This commit is contained in:
parent
411d486282
commit
9978fefa77
1 changed files with 4 additions and 1 deletions
|
|
@ -35,7 +35,10 @@ class TenantList extends Command
|
|||
->query()
|
||||
->cursor()
|
||||
->each(function (Tenant $tenant) {
|
||||
$this->line("[Tenant] id: {$tenant['id']} @ " . implode('; ', $tenant->domains->pluck('domain')->toArray() ?? []));
|
||||
$this->line(
|
||||
"[Tenant] id: {$tenant['id']}" .
|
||||
($tenant->domains ? " @ " . implode('; ', $tenant->domains->pluck('domain')->toArray() ?? []) : "")
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue