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