app/Http/Middleware/HideSensitiveInformation.php
/**
     * unset a key from an array
     */
unset a key from an array
unset a key from an array
protected function _recursiveUnsetArray(&$array, $unwanted_key) {
        unset($array[$unwanted_key]);
        foreach ($array as &$value) {
            if (is_array($value)) {
                $this->_recursiveUnsetArray($value, $unwanted_key);
            }
        }
    }
protected function _recursiveUnsetArray ( & $ array , $ unwanted_key ) { unset ( $ array [ $ unwanted_key ] ) ; foreach ( $ array as & $ value ) { if ( is_array ( $ value ) ) { $ this -> _recursiveUnsetArray ( $ value , $ unwanted_key ) ; } } }
unset a key from an array
unset a key from an array