juniorb2ss / laravel-extended-validation-rules
Rules to make easy validations in laravel 5.5.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=7.1.0
- guzzlehttp/guzzle: ^6.3
- illuminate/support: ~5.5
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ^2.3
This package is not auto-updated.
Last update: 2024-11-07 08:40:15 UTC
README
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 ] ]);