0
$.each(response.comments, function(key, value) {
  $("#commentsShow").append('<p class="fivem">' + value.comment + '</p><p class="mb-0">' + value.crated_at.diffForHumans() + '</p>');
});
N69S
  • 12,981
  • 3
  • 18
  • 33
  • 2
    `diffForHumans()` is a Laravel method which will only work in server side code, not client-side JS. There are JS implementations of similar logic though: https://stackoverflow.com/a/7641812/519413 – Rory McCrossan Mar 28 '22 at 09:47

0 Answers0