What is the use of dd() in Laravel?

devquora
devquora

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