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:
parent
57b842fbc6
commit
c9355c1c82
1 changed files with 1 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue