Dump to Console
Dump to Console sends Laravel dumps to a local console listener without stopping the application or changing its response, stream, download, or command output.
Requirements
Section titled “Requirements”- PHP 8.5 or later
- Laravel 13 components
Installation
Section titled “Installation”composer require artisan-toolbox/dump-to-consoleStart the listener in a terminal:
php artisan dump:listenSend values from the application with the dc() helper:
$order = dc(Order::find($id));
dc( request: $request->all(), order: $order,);The helper returns the values it receives, allowing it to be used inline. Delivery is best effort, so an unavailable listener does not interrupt the application.
Security
Section titled “Security”The dump protocol has no authentication or encryption. Keep the listener bound to a trusted local interface and handle dumped values with the same care as local logs.

