Lumen-framework: Call to undefined function dd()

Created on 10 Oct 2018  Â·  1Comment  Â·  Source: laravel/lumen-framework

  • Lumen Version: 5.7.*
  • PHP Version: 7.2.10
  • Database Driver & Version:
    MySQL 5.6

    Description:

After upgrading lumen 5.6 to 5.7 its starts complaining about dd function not found.

Steps To Reproduce:

use dd any where in the applicatoin.

Most helpful comment

The ‘dd’ helper was removed from the illuminate/support package in 5.7. I think it’s because symfony’s var dumper now ships with laravel by default, which contains ‘dd’ and ‘dump’.

So, if you’d like to include Symfony’s var dumper, you may include the package through composer:

composer require symfony/var-dumper

>All comments

The ‘dd’ helper was removed from the illuminate/support package in 5.7. I think it’s because symfony’s var dumper now ships with laravel by default, which contains ‘dd’ and ‘dump’.

So, if you’d like to include Symfony’s var dumper, you may include the package through composer:

composer require symfony/var-dumper

Was this page helpful?
0 / 5 - 0 ratings

Related issues

megawubs picture megawubs  Â·  5Comments

georgeboot picture georgeboot  Â·  4Comments

dunice picture dunice  Â·  3Comments

Andrei-Vakulski picture Andrei-Vakulski  Â·  3Comments

soderluk picture soderluk  Â·  3Comments