var_dump
and print_r
are displayed are not formatted when using Laravel 4. How do I format the data to be more readable?
Add Kint to your composer.json by running this on the command line:
composer require raveren/kint "dev-master"
And then try it:
dd( new Controller );
You should see this:
Better, huh?
Use kint
we use should s() instead of print_r()
use should d() instead of var_dump()
ex: sd($arr); like same print_r($arr); die();
Ref: http://raveren.github.io/kint/#configuration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With