src/Form.php
public function addFields($fields)
    {
        foreach ($fields as $field) {
            if (is_array($field)) {
                $this->addField(...$field);
            } else {
                $this->addField($field);
            }
        }

        return $this;
    }
public function addFields($fields)
    {
        foreach ($fields as $field) {
            if (is_array($field)) {
                $this->addField(...$field);
            } else {
                $this->addField($field);
            }
        }

        return $this;
    }
public function addFields ( $ fields ) { foreach ( $ fields as $ field ) { if ( is_array ( $ field ) ) { $ this -> addField ( ... $ field ) ; } else { $ this -> addField ( $ field ) ; } } return $ this ; }
Add more than one field in one shot.

@param array $fields

@return $this
Add more than one field in one shot .