user->id) { abort(401); } $postid = $comment->post->id; $comment->delete(); return redirect("/posts/$postid"); } }