/** * Get the items with the specified keys. * * @param mixed $keys * * @return static */ public function only($keys) { $keys = is_array($keys) ? $keys : func_get_args(); return new static(Arr::only($this->items, $keys)); }