juniorb2ss / LaravelExtendedValidationRules by juniorb2s

Rules to make easy validations in laravel 5.5.
3
1
1
Package Data
Maintainer Username: juniorb2s
Maintainer Contact: juniorb2ss@gmail.com (Carlos Eduardo)
Package Create Date: 2017-09-05
Package Last Update: 2017-09-05
Language: PHP
License: MIT
Last Refreshed: 2024-12-22 03:17:08
Package Statistics
Total Downloads: 3
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

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
        ]
    ]);