tenant)); // Terminate execution of this job & other jobs in the pipeline if ($this->tenant->getInternal('create_database') === false) { return false; } $this->tenant->database()->makeCredentials(); $databaseManager->ensureTenantCanBeCreated($this->tenant); $this->tenant->database()->manager()->createDatabase($this->tenant); event(new DatabaseCreated($this->tenant)); return true; } }