Does it use composer? If so you can just install vardumper (dd and dump). They are not from laravel
https://symfony.com/doc/current/components/var_dumper.html#installation
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I work on a pure PHP project (not Laravel) and I need to debug some parts of the code.
The output is the console (on Ubuntu).
I use echo, print_r or var_dump ... but even if I add \r\n, it doesn't work, I don't have any new line.
How can I add a new line ?
Thanks for your help.
V
add PHP_EOL
echo var_dump($var) . PHP_EOL;
Please or to participate in this conversation.