Skip to content

fusic/laravel-alter-send-email-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

laravel-alter-send-email-validator

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
],

About

Alter email validation when sending email in Laravel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages