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:
parent
6ee93d0441
commit
2f15dd5473
10 changed files with 142 additions and 59 deletions
|
|
@ -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.');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue