Browse Source

added dd helper.

Taylor Otwell 12 years ago
parent
commit
f6388e26be
1 changed files with 11 additions and 0 deletions
  1. 11 0
      laravel/helpers.php

+ 11 - 0
laravel/helpers.php

@@ -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.
  *
  *