private function sanitizeResources($resources)
    {
        return $resources->map(function ($resource) {
            return collect($resource)->mapWithKeys(function ($value, $key) {
                return [$this->sanitizeKey($key) => $value];
            });
        });
    }
private function sanitizeResources($resources)
    {
        return $resources->map(function ($resource) {
            return collect($resource)->mapWithKeys(function ($value, $key) {
                return [$this->sanitizeKey($key) => $value];
            });
        });
    }
private function sanitizeResources ( $ resources ) { return $ resources -> map ( function ( $ resource ) { return collect ( $ resource ) -> mapWithKeys ( function ( $ value , $ key ) { return [ $ this -> sanitizeKey ( $ key ) => $ value ] ; } ) ; } ) ; }
Sanitize resources.

@param $resources
@return \Illuminate\Support\Collection
Sanitize resources .