alissn/laravel-dumper

3,093 2
Install
composer require alissn/laravel-dumper
Latest Version:v3.1.0
PHP:>=8.2
License:MIT
Last Updated:Mar 1, 2025
Links: GitHub  ·  Packagist
Maintainer: alissn

Laravel Dumper

Improve the default output of dump() and dd() in Laravel projects. Improves the default dump behavior for many core Laravel objects, including:

  • Models
  • Query Builders
  • Service Container
  • Database Connections
  • Carbon Instances
  • Requests and Responses

https://user-images.githubusercontent.com/21592/150163719-547ecd90-b029-4588-9648-34891e5e0886.mp4

Installation

Install as a dev dependency:

# composer require alissn/laravel-dumper --dev

Usage

Just use dd() as you would normally, and enjoy the newly curated output!

Original Dump Output

If, for some reason, you really need the full debug output for an object that laravel-dumper customizes, you can do a "full" dump with ddf() and dumpf().

Comparison to Default Output

You can see comparisons between the default dd() output and the laravel-dumper output in the diffs directory of this repository.

Custom Casters

Due to changes in how Laravel registers the var dumper it is no longer possible to register custom casters.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
v3.1.0 >=8.2 ^9|^10|^11|^12|13.x-dev|dev-master MIT
v3.0.2 >=8.1 ^9|^10|^11|12.x-dev|dev-master MIT
v3.0.1 >=8.1 ^9|^10|11.x-dev|dev-master MIT
v3.0.0 >=8.1 ^9|^10|11.x-dev|dev-master MIT