detach all vouchers from the user when deleting the user
This commit is contained in:
parent
f50ba11340
commit
348868d6bd
|
@ -105,6 +105,8 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$user->vouchers()->detach();
|
||||||
|
|
||||||
Pterodactyl::client()->delete("/application/users/{$user->pterodactyl_id}");
|
Pterodactyl::client()->delete("/application/users/{$user->pterodactyl_id}");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue