diff --git a/src/helpers.php b/src/helpers.php index a48234b..6fad981 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -12,6 +12,7 @@ function dd() } } + if (!function_exists('dump')) { function dump() { @@ -20,3 +21,12 @@ function dump() }, func_get_args()); } } + +if (!function_exists('d')) { + function d() + { + array_map(function ($x) { + (new Rdehnhardt\Debug\Dumper)->dump($x); + }, func_get_args()); + } +}