Using Carbon in html response frm ajax
In the below code, I want to show updated some hours ago since the data is updated, but ' + $item.updated_at->diffInHours(now()) + '
giving following error Uncaught SyntaxError: expected expression, got ‘>’ It is pointing at -> operator