# fluentform/6.2.8/app/Services/Settings/Validator/MailChimps.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 6.2.8. 28 lines.

- Page: https://pluginprobe.com/plugins/fluentform/6.2.8/code/app/Services/Settings/Validator/MailChimps.php
- Raw: https://pluginprobe.com/plugins/fluentform/6.2.8/raw/app/Services/Settings/Validator/MailChimps.php
- Modified: 2023-06-22T15:10:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/6.2.8/code/app/Services/Settings/Validator/MailChimps.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Services\Settings\Validator;

class MailChimps extends Validate
{
    /**
     * Produce the necessary validation rules and corresponding messages
     *
     * @return array
     */
    public static function validations()
    {
        return [
            [
                'name'              => 'required',
                'list'              => 'required',
                'fieldEmailAddress' => 'required',
            ],
            [
                'name.required'              => 'The Name field is required.',
                'list.required'              => 'The Mailchimp List field is required.',
                'fieldEmailAddress.required' => 'The Email Address field is required.',
            ],
        ];
    }
}

```
