add temporary email address validator for laravel

v2.0.1 2021-01-20 07:38 UTC


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


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


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


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: