mdmohammudullaha's avatar

ddd() helper is not working on Laravel 9

Hi, When I call die, Dump, Debug helper. It shows this error Call to undefined function App\Http\Controllers\ddd()

0 likes
5 replies
cevizmx's avatar

The only reason I am still feeling sad is moving to Laravel 9 is this boring Spatie package:( Missing the good old ddd() They said;

We've never use that helper ourselves, and we removed that helper to simplify the package.

Maybe there is a setting somewhere, right? Does it need to be an exception :(

1 like
thinkverse's avatar

@minasmms the ddd helper function should still be in Laravel, it hasn't been removed from spatie/laravel-ignition as far as I can see? It's still in the code as of the latest release (v1.5.1), and it's being loaded in by the composer.json file.

After some research, I found out it was originally removed. But was added back again in v1.2.0. See my comment below. 👍

thinkverse's avatar

Could be you were running an older version of spatie/laravel-ignition, after looking through the releases it seems ddd was originally removed but added back again in release v1.2.0.

So if ddd isn't available for you, update spatie/laravel-ignition to a version above v1.2.0.

1 like
cevizmx's avatar

Thank you so much for your reply @thinkverse it works yes but not like the good old one. See the screenshot here, https://ibb.co/4tmXhCY In former versions it was more helpful, now it treats it like a exception :)

Please or to participate in this conversation.