mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 22:44:05 +00:00
Update DeleteDomains.php
This commit is contained in:
parent
57b842fbc6
commit
c9355c1c82
1 changed files with 1 additions and 7 deletions
|
|
@ -30,12 +30,6 @@ class DeleteDomains implements ShouldQueue
|
||||||
|
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$this->tenant->domains->each(function (Domain $domain){
|
$this->tenant->domains()->delete();
|
||||||
event(new DeletingDomain($domain));
|
|
||||||
|
|
||||||
$domain->delete();
|
|
||||||
|
|
||||||
event(new DomainDeleted($domain));
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue