Skip to content
Advertisement

dump returned values as expanded array in laravel

I am using dump($value) function. I have an associative array with lots of entries in it. I need to see the values right away without having to click the expansion button when dumped. I can use var_dump() to see it right away but I like it more using dump because it is modern and interactive. Below is the snapshot of dump function:

enter image description here

Advertisement

Answer

Here’s a quick format tool, no need to use laravel: (Source)

JavaScript

Here’s a screenshot of sample output, as well. (Bonus points for figuring out what the data is) screenshot of output

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement