Skip to content

Commit

Permalink
Merge pull request #21 from HenestrosaDev/dev
Browse files Browse the repository at this point in the history
Update `ProfileController.php`
  • Loading branch information
HenestrosaDev authored Jun 17, 2024
2 parents 27353fa + 2127183 commit 5122666
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Http/Controllers/Web/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ public function destroy(Request $request): RedirectResponse

Auth::logout();

$user->subscription()->delete();
$user->creditCard()->delete();
$user->bookReviews()->delete();
$user->role()->dissociate();
$user->bookmarks()->delete();

$user->delete();

$request->session()->invalidate();
Expand Down

0 comments on commit 5122666

Please sign in to comment.