Search

Laravel Miscellaneous Helper Function: dd

November 21, 2016 —John Koster

dd()

The dd function is a debug utility that will dump a set of values and then die. This means it will create a human-readable representation of the values and then stop execution of the script.

The dd function will take into account if the application is currently running in the console, or if it is returning a response to a client (such as a browser), and then update its output accordingly.