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:
parent
abd17f83a1
commit
cd6e989c09
7 changed files with 201 additions and 8 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue