Get all items except for those with the specified keys.

@param mixed $ignore Array of key names, or multiple arguments

@return static
439975
public function except($ignore)
    {
        $ignore = is_array($ignore) ? $ignore : func_get_args();

        return $this->filter(function ($value, $key) use ($ignore) {
            return !in_array($key, $ignore, true);
        });
    }
1337245
public function all(array $except = []): array
    {
        if (!is_array($except) || !count($except)) {
            return $this->public;
        }
        $all = [];
        foreach ($this->public as $key => $value) {
            if (!in_array($key, $except)) {
                $all[$key] = $value;
            }
        }
        return $all;
    }
1077588
public function Except( $items )
	{

		return $this
					->getClone()
					->setRepository( array_diff( $this->repository , $items instanceof Queryable ? $items->toArray() : $items ) );

	}
1245833
public function except($keys)
    {
        $results = $this->items;
        foreach ((array)$keys as $key) {
            unset($results[$key]);
        }

        return new static($results);
    }
408383
public function except($keys)
    {
        $keys = is_array($keys) ? $keys : func_get_args();

        $results = $this->all();

        Arr::forget($results, $keys);

        return $results;
    }
1015402
public function keyBy( $keyBy )
	{
		$keyBy = $this->valueRetriever( $keyBy );

		$results = [];

		foreach ( $this->items as $key => $item )
		{
			$results[$keyBy( $item, $key )] = $item;
		}

		return new static( $results );
	}
320565
public function except($keys)
    {
        $keys = is_array($keys) ? $keys : func_get_args();
        $results = [];
        $inputs = $this->all();
        foreach ($inputs as $key => $input) {
            if(!in_array($key,$keys))
                $results[$key] = $input[$key];
        }
        return $results;
    }
302487
public function forget($key)
    {
        if (is_string($key)) {
            $this->unsetVal($key);
        } else {
            foreach ($this->items as $keys => $value) {
                if ($key === $keys) {
                    $this->unsetVal($key);
                }
            }
        }

        return $this;
    }
381381
public function forget($keys = null)
    {
        if (is_null($keys)) {
            $this->items = [];
            return $this;
        }

        foreach ((array)$keys as $key) {
            unset($this->items[$key]);
        }

        return $this;
    }
380070
public static function hydrateCollection(array $ignores)
    {
        $hydrated = [];

        foreach ($ignores as $ignore) {
            $hydrated[] = self::hydrate($ignore);
        }

        return $hydrated;
    }
399360
public function offsetGet($key)
    {
        $result = array_get($this->items, $key);

        if (is_array($result))
            return new static($result);

        return $result;
    }
1200414
public function ignorePath($path)
    {
        if (is_array($path)) {
            foreach ($path as $pathToIgnore) {
                $this->ignorePath($pathToIgnore);
            }

            return $this;
        }

        $this->ignoredPaths[] = $path;
        return $this;
    }
561465
private function getByPropertyName($key)
    {
        if (($key = $this->getArrayKey($key)) !== static::NOT_FOUND) {
            if (is_array($this->items[$key])) {
                return $this->__wrap($this->items[$key]);
            }

            return $this->items[$key];
        }

        return static::NOT_FOUND;
    }
790541
public function toArray($ignore = ['pluginWrappers'])
    {
        $data = parent::toArray($ignore);
        if (!in_array('pluginWrappers', $ignore)) {
            $data['pluginWrappers'] = $this->modelArrayToArray(
                $this->getPluginWrappers()->toArray(),
                []
            );
        }

        if (!in_array('createdDateString', $ignore)) {
            $data['createdDateString'] = $this->getCreatedDateString();
        }

        if (!in_array('publishedDateString', $ignore)) {
            $data['publishedDateString'] = $this->getPublishedDateString();
        }

        return $data;
    }
1215457
public function except($keys)
    {
        $dictionary = Arr::except($this->getDictionary(), $keys);

        return new static(array_values($dictionary));
    }
754385
static public function addIgnores($ignores)
    {
        if (!is_array($ignores)) {
            $ignores = array($ignores);
        }
        foreach ($ignores as $i) {
            self::$ignore[$i] = true;
        }
    }
150786
public function only($keys)
    {
        if (is_null($keys)) {

            return new static($this->items);
        }

        $keys = is_array($keys) ? $keys : func_get_args();

        return new static(ArrayHelper::only($this->items, $keys));
    }