mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 08:04:03 +00:00
Ensure commands returns success
This commit is contained in:
parent
2f15dd5473
commit
27eb4f738e
7 changed files with 32 additions and 21 deletions
|
|
@ -14,7 +14,7 @@ class TenantList extends Command
|
|||
|
||||
protected $description = 'List tenants.';
|
||||
|
||||
public function handle(): void
|
||||
public function handle(): int
|
||||
{
|
||||
$tenants = tenancy()->query()->cursor();
|
||||
|
||||
|
|
@ -24,6 +24,8 @@ class TenantList extends Command
|
|||
/** @var Model&Tenant $tenant */
|
||||
$this->components->twoColumnDetail($this->tenantCli($tenant), $this->domainsCli($tenant));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue