app/Http/Middleware/HideSensitiveInformation.php
/**
     * unset keys from arrays inside a collection
     */
unset keys from arrays inside a collection
unset keys from arrays inside a collection
protected function recursiveUnsetCollection(Collection $collection, $unwanted_keys) {
        $collection->each(function($coll) use ($unwanted_keys) {
            $this->recursiveUnsetArray($coll, $unwanted_keys);
        });
    }
protected function recursiveUnsetCollection ( Collection $ collection , $ unwanted_keys ) { $ collection -> each ( function ( $ coll ) use ( $ unwanted_keys ) { $ this -> recursiveUnsetArray ( $ coll , $ unwanted_keys ) ; } ) ; }
unset keys from arrays inside a collection
unset keys from arrays inside a collection
//dd($coll);