Skip to content

Commit

Permalink
Fix Collection dd() in browser preview window (#22803)
Browse files Browse the repository at this point in the history
See #22581
  • Loading branch information
Jesse Denardo authored and taylorotwell committed Jan 15, 2018
1 parent a488b9c commit 1f20e5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit 1f20e5f

@motecshine
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome work!!!

Please sign in to comment.