Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Illuminate/Support composer suggestion for symfony/var-dumper #6

Open
webstractions opened this issue Sep 25, 2017 · 0 comments
Open

Comments

@webstractions
Copy link

After installing project dependancies, I noticed this suggestion.

illuminate/support suggests installing symfony/var-dumper (Required to use the dd function (~3.2).)

I work with Laravel and the dd( $variable ) function is pretty cool for debugging. It 'dumps and dies', which is basically another way of doing:

var_dump($variable);
die;

It is also better than var_dump, in that it pretty prints variables, arrays, and objects. In the case of objects, they come in the form of collapsible trees that you can expand and collapse. Great for json, collections, etc.

Also, in Illuminate/Support 5.5 they added other goodies such as dump(), which dumps the variable inline and continues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant