Support the ongoing development of Laravel.io →
Configuration
Last updated 2 years ago.
0

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.

0

Unfortunately, that plugin didn't work as well

0

If you are using Chrome, try JSONView.

0

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.

0

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?

0

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

0

If you have sent any output (ie html headers) then browser wont interpret as JSON...

0

Sign in to participate in this thread!

Eventy

Your banner here too?

d3mueller d3mueller Joined 29 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.