mercredi 21 janvier 2015

Laravel returns json data in different way on local and Amazon EC2

We are using Laravel as back end and Angular JS for our front end REST application


Locally we are using Vagrant Homestead Environment And we are using Amazon EC2 & RDS for our online version. We have setup Amazon EC2 using Laravel Forge


The problem we are facing is for JSON output on both the environment


Locally we are getting:



{"id":234,"fname":"firstname","lname":"lastname"}


Where 234 comes as integer and on Amazon EC2



{"id":"234","fname":"firstname","lname":"lastname"}


where 234 comes as string


My question is what changes should be done to make the output integer for Amazon EC2?





Aucun commentaire:

Enregistrer un commentaire