public function alterFieldValues(Form $form, array &$values)
    {
        // Alter the form itself
        $form->alterFieldValues($values);

        // Alter the form's child forms recursively
        foreach ($form->getFields() as $name => $field) {
            if (method_exists($field, 'alterFieldValues')) {
                $fullName = $this->transformToDotSyntax($name);

                $subValues = (array) Arr::get($values, $fullName);
                $field->alterFieldValues($subValues);
                Arr::set($values, $fullName, $subValues);
            }
        }
    }
public function alterFieldValues(Form $form, array &$values)
    {
        // Alter the form itself
        $form->alterFieldValues($values);

        // Alter the form's child forms recursively
        foreach ($form->getFields() as $name => $field) {
            if (method_exists($field, 'alterFieldValues')) {
                $fullName = $this->transformToDotSyntax($name);

                $subValues = (array) Arr::get($values, $fullName);
                $field->alterFieldValues($subValues);
                Arr::set($values, $fullName, $subValues);
            }
        }
    }
public function alterFieldValues ( Form $ form , array & $ values ) { // Alter the form itself $ form -> alterFieldValues ( $ values ) ; // Alter the form's child forms recursively foreach ( $ form -> getFields ( ) as $ name => $ field ) { if ( method_exists ( $ field , 'alterFieldValues' ) ) { $ fullName = $ this -> transformToDotSyntax ( $ name ) ; $ subValues = ( array ) Arr :: get ( $ values , $ fullName ) ; $ field -> alterFieldValues ( $ subValues ) ; Arr :: set ( $ values , $ fullName , $ subValues ) ; } } }
Alter a form's values recursively according to its fields.

@param  Form  $form
@param  array $values
@return void
Alter a form s values recursively according to its fields .