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