/** * Get and remove an item from the collection. * * @param mixed $key * @param mixed $default * * @return mixed */ public function pull($key, $default = null) { return Arr::pull($this->items, $key, $default); }