Raw output for debugging API.

mateusgf posted 3 years ago

I am having troubles with larval because the dd() functions returns with a lots of HTML on it. Since I am debugging an API with cURL on my terminal I want to see the raw output with no additional HTML.

Any solution for disabling the new dd() feature and rather use it like in Laravel 4?

thomastkim replied 3 years ago

I think you can just use die() then. Assuming you have a $users variable...


This was the old dd function so if you want, you can also create your own method:

function ddOld()
	array_map(function($x) { var_dump($x); }, func_get_args()); die;

Sign in to participate in this thread!

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