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

Using laravel components

This commit is contained in:
j.stein 2022-10-09 00:11:37 -04:00
parent 6ee93d0441
commit 2f15dd5473
10 changed files with 142 additions and 59 deletions

View file

@ -18,10 +18,10 @@ class Up extends Command
public function handle(): void
{
tenancy()->runForMultiple($this->getTenants(), function ($tenant) {
$this->line("Tenant: {$tenant['id']}");
$this->components->info("Tenant: {$tenant->getTenantKey()}");
$tenant->bringUpFromMaintenance();
});
$this->comment('Tenants are now out of maintenance mode.');
$this->components->info('Tenants are now out of maintenance mode.');
}
}