protected function escape(array $data): array
    {
        $arrayDot = array_filter(array_dot($data));

        foreach ($arrayDot as $key => $value) {
            if (is_string($value)) {
                $arrayDot[$key] = e($value);
            }
        }

        foreach ($arrayDot as $key => $value) {
            array_set($data, $key, $value);
        }

        return $data;
    }
protected function escape(array $data): array
    {
        $arrayDot = array_filter(array_dot($data));

        foreach ($arrayDot as $key => $value) {
            if (is_string($value)) {
                $arrayDot[$key] = e($value);
            }
        }

        foreach ($arrayDot as $key => $value) {
            array_set($data, $key, $value);
        }

        return $data;
    }
protected function escape ( array $ data ) : array { $ arrayDot = array_filter ( array_dot ( $ data ) ) ; foreach ( $ arrayDot as $ key => $ value ) { if ( is_string ( $ value ) ) { $ arrayDot [ $ key ] = e ( $ value ) ; } } foreach ( $ arrayDot as $ key => $ value ) { array_set ( $ data , $ key , $ value ) ; } return $ data ; }
Escape all values.

@param array $data

@return array
Escape all values .