Example #1
0
 /**
  * Get a flattened array of the items in the collection.
  *
  * @param  int $depth
  *
  * @return static
  */
 public function flatten($depth = INF)
 {
     return new static(Arr::flatten($this->items, $depth));
 }