Symfony’s https://symfony.com/doc/current/components/var_dumper.html is a game changer when it comes to debugging. It allows us to dump variables in a clean and efficient way.

Today, we’ll see how we can extend it to dump our objects, or some vendor objects, in a more readable way.

And another tip we use quite often: a Twig extension to dump a variable in a template in production!

Some will say it’s a bad practice, but we find it very useful to debug some data issues in production.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners