Exemple #1
0
 /**
  * Get the value at the given offset.
  *
  * @param  string  $offset
  * @return mixed
  */
 public function offsetGet($offset)
 {
     //        return data_get($this->all(), $offset);
     return Arr::get($this->all(), $offset);
 }
Exemple #2
0
 /**
  * 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);
 }