Package

Soloterm Dumps

A Laravel command to intercept dumps from your Laravel application.

Package

soloterm/dumps

View on GitHub →

Solo Dumps for Laravel

Solo Dumps for Laravel is a package that intercepts and collects dump() calls from your Laravel application and displays them in a dedicated terminal window. This eliminates the need to clutter your browser or API responses with debug output.

This library was built to support Solo, your all-in-one Laravel command to tame local development.

This package is especially useful when:

  • You're working with APIs where you can't see dumps in the browser
  • You want to keep your browser console clean
  • You want to centralize all your debugging output in one place
  • You need source file information for your dumps

Installation

  1. Require the package:
composer require soloterm/dumps --dev

The package will automatically register the service provider.

Usage

Simply run:

php artisan solo:dumps

This will start a server that intercepts all dump() calls from your Laravel application. The command will keep running and display any dumps in real-time.

Now when you use dump() anywhere in your application, the output will be sent to this terminal window instead of your browser or API response.

Features

  • Intercepts all dump() calls from your Laravel application
  • Shows the exact file and line number where the dump was called
  • Formats the output using Laravel's CLI dumper for better readability
  • Works with APIs, background jobs, and other contexts where dumps are normally hard to see
  • Preserves all the functionality of Laravel's dump helper
  • Restores regular dump functionality when the command is stopped

Works with Solo for Laravel

If you're using Solo for Laravel, you can add the dumps command to your configuration:

// config/solo.php
 
'commands' => [
// ... other commands
'Dumps' => 'php artisan solo:dumps',
],

Configuration

You can configure the dump server host in your config/solo.php file:

// config/solo.php
 
return [
// ... other configurations
'dump_server_host' => 'tcp://127.0.0.1:9984',
];

There is no dedicated dumps config file. You can either create a solo.php and put the dump_server_host in there, or add it to your existing solo.php file.

How It Works

The package works by:

  1. Registering a custom var dumper handler that captures dump calls
  2. Resolving the source file and line number of the dump before sending to the server
  3. Sending the dump data to a server running in a separate process
  4. Displaying the formatted dump with source information in the terminal

FAQ

Does this work with dd()?

No, this package only intercepts dump() calls. The dd() function will still halt execution as normal.

Can I use this with APIs?

Yes! This is one of the main benefits. Your API responses will remain clean while all dumps go to the dedicated terminal window.

Will this affect my application in production?

The package is designed to be used in development only. It's recommended to install it with the --dev flag to ensure it's not included in production.

Support

This is free! If you want to support me:

Credits

Dumps for Laravel was developed by Aaron Francis. If you like it, please let me know!

Soloterm Dumps Related Articles

Solo Dumps for Laravel image

Solo Dumps for Laravel

Read article
Laravel Auditor Audits Your App With Your Own AI Agent image

Laravel Auditor Audits Your App With Your Own AI Agent

Read article
Find the Security Vulnerabilities in Your Laravel App with Sensagraph image

Find the Security Vulnerabilities in Your Laravel App with Sensagraph

Read article
EnvKit: A Local Development Stack for Laravel on Windows and macOS image

EnvKit: A Local Development Stack for Laravel on Windows and macOS

Read article
Powerful Debugging for PHP & Laravel with LaraDumps image

Powerful Debugging for PHP & Laravel with LaraDumps

Read article
Laravel Herd Raycast Extension image

Laravel Herd Raycast Extension

Read article

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $9500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

Pushsilver

Pushsilver is simple invoicing for freelancers and small studios — send polished invoices, automate reminders, and get paid on time without the bloat.

Pushsilver

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing