Browse Source

Updated the dd function to var_dump inside pre tags, makes is a bit more readable

Steve Frost 12 years ago
parent
commit
a8b5231e57
1 changed files with 4 additions and 1 deletions
  1. 4 1
      laravel/helpers.php

+ 4 - 1
laravel/helpers.php

@@ -34,7 +34,10 @@ function __($key, $replacements = array(), $language = null)
  */
 function dd($value)
 {
-	die(var_dump($value));
+	echo "<pre>";
+	var_dump($value);
+	echo "</pre>";
+	die;
 }
 
 /**