diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index c58ece8..10a4c76 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -151,7 +151,7 @@ class ProfileController extends Controller } // Update comments to deleted user - DB::table('comments')->where('commenter_id', '=', $user->id)->update(['commenter_id' => 1]); + DB::table('comments')->where('user_id', '=', $user->id)->update(['user_id' => 1]); // Delete Profile Picture if ($user->avatar) {