What is the use of dd() in Laravel?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Feb 22, 2018

 

In Laravel, dd() is a helper function used to dump a variable's contents to the browser and stop the further script execution. It stands for Dump and Die. It is used to dump the variable/object and then die the script execution. You can also isolate this function in a reusable functions file or a Class.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Laravel interview questions

    What is Laravel?

    Laravel is a free open source "PHP framework" based on the MVC design pattern. It is created by Taylor Otwell...