Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fusic/laravel-alter-send-email-validator
Alter email validation when sending email in Laravel
https://github.com/fusic/laravel-alter-send-email-validator
Last synced: 7 days ago
JSON representation
Alter email validation when sending email in Laravel
- Host: GitHub
- URL: https://github.com/fusic/laravel-alter-send-email-validator
- Owner: fusic
- Created: 2019-09-28T02:49:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T01:43:38.000Z (over 5 years ago)
- Last Synced: 2024-11-09T12:37:48.624Z (2 months ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laravel-alter-send-email-validator
## Setup
```
composer require fusic/laravel-alter-send-email-validator
```## Default validation rules
```php
[
'regex:/^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/ui'
]
```## Custom validation rules
### put configuration file
```
php artisan vendor:publish
```or make make configuration file to your laravel app
```
config/alter-email-validation.php
```### modify validation rules
config/alter-email-validation.php
```php
'rules' => [
'max:64',
'***' // any patterns
],
```