Laravel 5 Collections: Dumping the Collection Contents and Stopping Script Execution for Debugging With dd
The dd method will dump the contents of the collection and stop execution of the script; in this way, it works just like the global dd helper function except that it acts exclusively on the collections internal array.1 public function dd ( 2 ... $...