public function ignores(array $ignores)
    {
        $data = [];

        $this->recursive(
            $this->storage,
            function ($value, $key) use (& $data, $ignores) {
                if (!in_array($key, $ignores)) {
                    $data[$key] = $value;
                }
            }
        );

        return new Collection($data);
    }
public function ignores(array $ignores)
    {
        $data = [];

        $this->recursive(
            $this->storage,
            function ($value, $key) use (& $data, $ignores) {
                if (!in_array($key, $ignores)) {
                    $data[$key] = $value;
                }
            }
        );

        return new Collection($data);
    }
public function ignores ( array $ ignores ) { $ data = [ ] ; $ this -> recursive ( $ this -> storage , function ( $ value , $ key ) use ( & $ data , $ ignores ) { if ( ! in_array ( $ key , $ ignores ) ) { $ data [ $ key ] = $ value ; } } ) ; return new Collection ( $ data ) ; }
Ignore the key that is given to it and return an instance of Collection.

@param  array $ignores

@return Collection
Ignore the key that is given to it and return an instance of Collection .