Skip to content

Commit 382181b

Browse files
committed
delete an user's tokens
1 parent 4de5a8e commit 382181b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stubs/app/Actions/Jetstream/DeleteUserWithTeams.php

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function delete($user)
3737
DB::transaction(function () use ($user) {
3838
$this->deleteTeams($user);
3939
$user->deleteProfilePhoto();
40+
$user->tokens->each->delete();
4041
$user->delete();
4142
});
4243
}

0 commit comments

Comments
 (0)