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
laravel-dumper.mp4
Install as a dev dependency:
# composer require alissn/laravel-dumper --devJust use dd() as you would normally, and enjoy the newly curated 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().
You can see comparisons between the default dd() output and the laravel-dumper output
in the diffs directory of this repository.
Due to changes in how Laravel registers the var dumper it is no longer possible to register custom casters.