I am using Laravel3 Response::eloquent
.
The result is in JSON format: {"id":"1"}
. However I want the result like this: {"id":1}
with id
as a number, not string type.
I use apache and Content-Type
is application/json; charset=UTF-8
.
The problem only occurs on the production system. On my localhost the result is {"id":1}
.
Is there any relevant setting for Apache or Laravel3 ?