Skip to content

Commit

Permalink
Update docs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette authored Oct 7, 2024
1 parent 0105f40 commit 8e09ad3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/10.users/01.user-accounts/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ class UserActions {

public function delete($userId) {
$userModel = new User();
$user = $userModel->find($userId);

//includes soft-deleted users
$user = $userModel->withTrashed()->find($userId);

if(!$user) return;
$user->forceDelete();
Expand Down

0 comments on commit 8e09ad3

Please sign in to comment.