Where is the dd()
function located in laravel. Whether is is inside any files or any other specific packages because it can be called anywhere so exactly where it is located.
Where is the dd()
function located in laravel. Whether is is inside any files or any other specific packages because it can be called anywhere so exactly where it is located.
2
Answers
dd()
helper is provided by the Symfony VarDumper component.When you navigate to
.vendorlaravelframework
in IDE and search fordd()
. You will find a set of results.But underhood, what runs is
Check
vendor/symfony/var-dumper/VarDumper.php
(if thevendor
folder exists)/vendor/symfony/var-dumper/functions/dump.php
https://i.stack.imgur.com/D7Cag.png