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. 🚀

--

--