Changeset View
Changeset View
Standalone View
Standalone View
src/app/Jobs/DomainCreate.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | class DomainCreate implements ShouldQueue | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
if (!$this->domain->isLdapReady()) { | if (!$this->domain->isLdapReady()) { | ||||
LDAP::createDomain($this->domain); | LDAP::createDomain($this->domain); | ||||
$this->domain->status |= Domain::STATUS_LDAP_READY; | $this->domain->status |= Domain::STATUS_LDAP_READY; | ||||
$this->domain->save(); | $this->domain->save(); | ||||
DomainVerify::dispatch($this->domain); | |||||
} | } | ||||
} | } | ||||
} | } |