From 1f20e5f369a4089d4237f1a134c8a7490ece146d Mon Sep 17 00:00:00 2001 From: Jesse Denardo Date: Mon, 15 Jan 2018 14:34:10 -0500 Subject: [PATCH] Fix Collection dd() in browser preview window (#22803) See https://github.com/laravel/framework/pull/22581 --- src/Illuminate/Support/Collection.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Illuminate/Support/Collection.php b/src/Illuminate/Support/Collection.php index d95271d35e15..276c650ed7fc 100644 --- a/src/Illuminate/Support/Collection.php +++ b/src/Illuminate/Support/Collection.php @@ -271,6 +271,8 @@ public function crossJoin(...$lists) */ public function dd(...$args) { + http_response_code(500); + call_user_func_array([$this, 'dump'], $args); die(1);