1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 20:34:03 +00:00

Update DeleteDomains.php

This commit is contained in:
Abrar Ahmad 2022-07-04 23:57:01 +05:00
parent 57b842fbc6
commit c9355c1c82

View file

@ -30,12 +30,6 @@ class DeleteDomains implements ShouldQueue
public function handle()
{
$this->tenant->domains->each(function (Domain $domain){
event(new DeletingDomain($domain));
$domain->delete();
event(new DomainDeleted($domain));
});
$this->tenant->domains()->delete();
}
}