cleaniquecoders / laravel-blacklist
Validation disposable email domain
Installs: 1 468
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: ^8.1 | ^8.2 | ^8.3
- illuminate/contracts: ^9.0 | ^10.0 | ^11.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.0
- orchestra/testbench: ^8.0 | ^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5 | ^10.0
README
Validate the email provided either in the list of blacklisted domain.
Installation
You can install the package via composer:
composer require cleaniquecoders/laravel-blacklist
You can publish the config file with:
php artisan vendor:publish --tag="blacklist-config"
Then install list of disposable email list:
php artisan blacklist:install
Usage
use CleaniqueCoders\LaravelBlacklist\Rules\Blacklist; $request->validate([ 'email' => [new Blacklist] ]); // OR Validator::validate([ 'email' => 'malinator.com', ], [ 'email' => [new Blacklist], ]);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.