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

Ensure commands returns success

This commit is contained in:
j.stein 2022-10-09 00:23:30 -04:00
parent 2f15dd5473
commit 27eb4f738e
7 changed files with 32 additions and 21 deletions

View file

@ -23,7 +23,7 @@ final class MigrateFresh extends Command
$this->setName('tenants:migrate-fresh');
}
public function handle(): void
public function handle(): int
{
tenancy()->runForMultiple($this->getTenants(), function ($tenant) {
$this->components->info("Tenant: {$tenant->getTenantKey()}");
@ -44,5 +44,6 @@ final class MigrateFresh extends Command
});
});
return 0;
}
}