Validate the email provided either in the list of blacklisted domain.
You can install the package via composer:
composer require cleaniquecoders/laravel-blacklistYou can publish the config file with:
php artisan vendor:publish --tag="blacklist-config"Then install list of disposable email list:
php artisan blacklist:installuse CleaniqueCoders\LaravelBlacklist\Rules\Blacklist;
$request->validate([
'email' => [new Blacklist]
]);
// OR
Validator::validate([
'email' => 'malinator.com',
], [
'email' => [new Blacklist],
]);composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.