fusic / laravel-alter-send-email-validator
Alter email validation at send email in Laravel
1.0.0
2019-09-28 03:00 UTC
Requires
- php: ^7.1.3
- illuminate/support: >=5.5.0||6.0.0
- swiftmailer/swiftmailer: ~5.4|~6.0
Requires (Dev)
- orchestra/testbench: ^3.5
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-10-29 05:41:02 UTC
README
Setup
composer require fusic/laravel-alter-send-email-validator
Default validation rules
[
'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
'rules' => [ 'max:64', '***' // any patterns ],