Laravel 5.7 includes an incredibly useful new php artisan dump-server
command. Written by Marcel Pociot, this command provides a wrapper around Symfony's VarDumper component. While running, each time you dump data as part of your response (examples: dump($users)
or dd('hello world')
), the output will be swallowed up and printed in the console.