user destroying flow updated
This commit is contained in:
@ -16,6 +16,8 @@ class DeleteUser extends Job implements ShouldDelete
|
||||
event(new UserDeleting($this->model));
|
||||
|
||||
\DB::transaction(function () {
|
||||
$this->deleteRelationships($this->model, ['invitation']);
|
||||
|
||||
$this->model->delete();
|
||||
|
||||
$this->model->flushCache();
|
||||
|
Reference in New Issue
Block a user