Skip to content

This extension allows the Laravel Validator to recognize by rule whether the e-mail address is a temporary e-mail address.

License

Notifications You must be signed in to change notification settings

Dropelikeit/temporary-email-validator

Repository files navigation

Recognition of temporary e-mail addresses as validator rule for Laravel

Gitworkflow Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License composer.lock License

Installation:

composer require marcel-strahl/temporary-email-validator

In versions from 5.3+ you don't need the following step, because we load our package with Discover in Laravel. Add the ServiceProvider to config/app.php

MarcelStrahl\TemporaryValidator\TemporaryValidatorServiceProvider::class,

Add the rule (it's the rule with the name not_temporary_email) like any other rule in Laravel to the validator where you want to use it

$rules = ['required|email|not_temporary_email'];

Hint:

I am not the creator of the "Temporary Email Detection" but have changed the following package into a Laravel Validator rule!

Main Package Temporary E-Mail Detection: https://github.com/jprangenbergde/temporary-email-detection

About

This extension allows the Laravel Validator to recognize by rule whether the e-mail address is a temporary e-mail address.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages