glhd / laravel-dumper
Installs: 619 358
Dependents: 2
Suggesters: 0
Security: 0
Stars: 387
Watchers: 5
Forks: 13
Open Issues: 2
Requires
- php: >=8.1
- ext-json: *
- illuminate/support: ^9|^10|11.x-dev|dev-master
- jdorn/sql-formatter: ^1.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.3.2
- orchestra/testbench: ^7.10|^8|9.x-dev|10.x-dev|dev-master
- phpunit/phpunit: ^9.5
README
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
laravel-dumper.mp4
Installation
Install as a dev dependency:
# composer require glhd/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.