fusic/laravel-alter-send-email-validator

Alter email validation at send email in Laravel

1.0.0 2019-09-28 03:00 UTC

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