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.
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: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.