Example #1
0
 /**
  * Get the first item from the collection.
  *
  * @param  callable|null $callback
  * @param  mixed $default
  *
  * @return mixed
  */
 public function first(callable $callback = null, $default = null)
 {
     return Arr::first($this->items, $callback, $default);
 }