Laravel dd($var) function output issues in new Chrome?

RadicalLoop
1 min readJan 2, 2018

--

Recently Laravel dd() function seems to have stopped working properly in latest Chrome. The dump does not render output properly. It looks like below:

I found a workaround here. Seems Chrome renders errors as HTML. To use this workaround in Laravel, just create a helper function and include in composer.json

> helpers.php (your_project/helpers.php)

> composer.json

Then run the command:

composer dump-autoload

That’s it! Now use _dd($data) function instead of dd($data).

Happy debugging!

Any questions or suggestions? please comment!

Follow RadicalLoop on Twitter, Facebook. 🚀

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (4)

Write a response