mohamedJamal
2 months ago
534
8
Laravel

response()->json() return different types value after deploy

Posted 2 months ago by mohamedJamal

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));

Please sign in or create an account to participate in this conversation.