added dd helper.

This commit is contained in:
Taylor Otwell 2012-04-16 20:38:31 -05:00
parent 62935964eb
commit f6388e26be
1 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,17 @@ function __($key, $replacements = array(), $language = null)
return Laravel\Lang::line($key, $replacements, $language); return Laravel\Lang::line($key, $replacements, $language);
} }
/**
* Dump the given value and kill the script.
*
* @param mixed $value
* @return void
*/
function dd($value)
{
die(var_dump($value));
}
/** /**
* Get an item from an array using "dot" notation. * Get an item from an array using "dot" notation.
* *