Looking to hire Laravel developers? Try LaraJobs

laravel-extended-validation-rules maintained by juniorb2ss

Description
Rules to make easy validations in laravel 5.5.
Last update
2017/09/05 19:37 (dev-master)
License
Downloads
4

Comments
comments powered by Disqus

Laravel 5.5 Rules Extends

Validate Email With Mailgun Service

In .env file you need define your api pub key

MAILGUN_PUBKEY=pubkey-5ogiflzbnjrljiky49qxsiozqef5jxp7

To make validation:

    use juniorb2ss\LaravelExtendedValidationRules\Rules\MailGunValidateEmailAddressRule;

    return Validator::make($inputs, [
        'name' => 'required|string|max:255',
        'email' => [
            'required',
            'string',
            'max:255',
            'unique:users',
            new MailGunValidateEmailAddressRule // to make validation in mailgun service
        ]
    ]);