Skip to content

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.

  • PHP 8.5 or later
  • Laravel 13 components
Terminal window
composer require artisan-toolbox/dump-to-console

Start the listener in a terminal:

Terminal window
php artisan dump:listen

Send 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.

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.