Skip to content

Commit

Permalink
Add dd() to collection.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 25, 2017
1 parent 91543c1 commit f5fafad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,16 @@ public function crossJoin(...$lists)
));
}

/**
* Dump the collection and end the script.
*
* @return void
*/
public function dd()
{
dd($this->all());
}

/**
* Get the items in the collection that are not present in the given items.
*
Expand Down

0 comments on commit f5fafad

Please sign in to comment.