I think it's been changed.
If you are using Google Chrome, you can easily find plugins such as JSON Formatter that prettifies JSON for you.
When this happened to me, it was because I didn't have the xdebug extension set up. I was doing some preliminary work using "php -S" and noticed the unformatted dd() output. Switching back yo my usual vagrant setup fixed it.
ddelnano said:
If you are using Chrome, try JSONView.>
Also tried that :(
opb said:
When this happened to me, it was because I didn't have the xdebug extension set up. I was doing some preliminary work using "php -S" and noticed the unformatted dd() output. Switching back yo my usual vagrant setup fixed it.
What do you mean by switching back to your usual vagrant setup? I'm using homestead. Do I have to change some settings or something?
Okay I found the answer:
in my homestead.yam file I had this line in the definition of my site:
hhvm: true
I read that this speeds up the homepage. That caused all of the problems :)
If you have sent any output (ie html headers) then browser wont interpret as JSON...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community