response()->json() return different types value after deploy
My code was working perfectly at homestead and return JSON as I expect when I deploy my APP the code does not return JSON like image >> https://ibb.co/LRZNhJr
Code
return response()->json($cart);
// and I tried
return response(json_encode($cart));
I found where's the problem comes, comes from a database the raw has description column has HTML elements with style like (h1) so JSON is not Valid.
@amaury do you know how to solve it? ^^