Skip to content

Commit

Permalink
Update DeleteUser.php
Browse files Browse the repository at this point in the history
delete a users token once user is deleted
  • Loading branch information
lostdesign authored Oct 27, 2020
1 parent 872ba5d commit 4de5a8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stubs/app/Actions/Jetstream/DeleteUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class DeleteUser implements DeletesUsers
public function delete($user)
{
$user->deleteProfilePhoto();
$user->tokens->each->delete();
$user->delete();
}
}

0 comments on commit 4de5a8e

Please sign in to comment.