Esempio n. 1
0
 /**
  * Push an item onto the beginning of the collection.
  *
  * @param mixed $value
  * @param mixed $key
  *
  * @return $this
  */
 public function prepend($value, $key = null) : Collection
 {
     $this->items = Arr::prepend($this->items, $value, $key);
     return $this;
 }