https://github.com/juniorb2ss/laravelextendedvalidationrules
Rules to make easy validations in laravel 5.5.
https://github.com/juniorb2ss/laravelextendedvalidationrules
Last synced: 11 months ago
JSON representation
Rules to make easy validations in laravel 5.5.
- Host: GitHub
- URL: https://github.com/juniorb2ss/laravelextendedvalidationrules
- Owner: juniorb2ss
- License: mit
- Created: 2017-09-05T17:11:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-05T17:38:35.000Z (almost 9 years ago)
- Last Synced: 2025-01-01T14:45:26.273Z (over 1 year ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel 5.5 Rules Extends
### Validate Email With Mailgun Service
In .env file you need define your api pub key
```env
MAILGUN_PUBKEY=pubkey-5ogiflzbnjrljiky49qxsiozqef5jxp7
```
To make validation:
```php
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
]
]);
```