Categories
Development JSON Laravel

Laravel 4.2 Response::json converts some strings to integer 0

I’m experiencing an issue with Laravel 4.2 using Response::json

The data returned after querying my database is correct, but when i return it using:

return Response::json($inventory);

some values get converted from their original string value to integer 0 while others don’t get converted.

Can someone help me please?

Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *