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

        foreach ($data as $key => $value) {
            if (is_array($value)) {
                $value = $this->parseData($value);
            }

            // If the data key contains a dot, we will replace it with another character
            // sequence so it doesn't interfere with dot processing when working with
            // array based validation rules and array_dot later in the validations.
            if (Str::contains($key, '.')) {
                $newData[str_replace('.', '->', $key)] = $value;
            } else {
                $newData[$key] = $value;
            }
        }

        return $newData;
    }
public function parseData(array $data)
    {
        $newData = [];

        foreach ($data as $key => $value) {
            if (is_array($value)) {
                $value = $this->parseData($value);
            }

            // If the data key contains a dot, we will replace it with another character
            // sequence so it doesn't interfere with dot processing when working with
            // array based validation rules and array_dot later in the validations.
            if (Str::contains($key, '.')) {
                $newData[str_replace('.', '->', $key)] = $value;
            } else {
                $newData[$key] = $value;
            }
        }

        return $newData;
    }
public function parseData ( array $ data ) { $ newData = [ ] ; foreach ( $ data as $ key => $ value ) { if ( is_array ( $ value ) ) { $ value = $ this -> parseData ( $ value ) ; } // If the data key contains a dot, we will replace it with another character // sequence so it doesn't interfere with dot processing when working with // array based validation rules and array_dot later in the validations. if ( Str :: contains ( $ key , '.' ) ) { $ newData [ str_replace ( '.' , '->' , $ key ) ] = $ value ; } else { $ newData [ $ key ] = $ value ; } } return $ newData ; }
Parse the data array, converting dots to ->.

@param  array  $data
@return array
Parse the data array converting dots to - > .