skip to Main Content

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


  1. dd() helper is provided by the Symfony VarDumper component.

    When you navigate to .vendorlaravelframework in IDE and search for dd(). You will find a set of results.

    But underhood, what runs is

    VarDumper::dump($value);
    

    Check vendor/symfony/var-dumper/VarDumper.php (if the vendor folder exists)

    Login or Signup to reply.
  2. /vendor/symfony/var-dumper/functions/dump.php
    https://i.stack.imgur.com/D7Cag.png

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search