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

create host connection for creating, deleting tenants

This commit is contained in:
Abrar Ahmad 2022-09-13 14:41:28 +05:00
parent abd17f83a1
commit cd6e989c09
7 changed files with 201 additions and 8 deletions

View file

@ -35,7 +35,7 @@ class CreateDatabase implements ShouldQueue
$this->tenant->database()->makeCredentials();
$databaseManager->ensureTenantCanBeCreated($this->tenant);
$this->tenant->database()->manager()->createDatabase($this->tenant);
$this->tenant->database()->hostManager()->createDatabase($this->tenant);
event(new DatabaseCreated($this->tenant));
}