Changeset View
Changeset View
Standalone View
Standalone View
src/app/Observers/DomainObserver.php
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | class DomainObserver | ||||
* Handle the domain "deleted" event. | * Handle the domain "deleted" event. | ||||
* | * | ||||
* @param \App\Domain $domain The domain. | * @param \App\Domain $domain The domain. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function deleted(Domain $domain) | public function deleted(Domain $domain) | ||||
{ | { | ||||
if ($domain->isForceDeleting()) { | |||||
return; | |||||
} | |||||
\App\Jobs\Domain\DeleteJob::dispatch($domain->id); | \App\Jobs\Domain\DeleteJob::dispatch($domain->id); | ||||
} | } | ||||
/** | /** | ||||
* Handle the domain "updated" event. | * Handle the domain "updated" event. | ||||
* | * | ||||
* @param \App\Domain $domain The domain. | * @param \App\Domain $domain The domain. | ||||
* | * | ||||
Show All 31 Lines |