bekwoh / laravel-blacklist
Validation disposable email domain
Installs: 1 066
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- illuminate/contracts: ^9.0|^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.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 bekwoh/laravel-blacklist
You can publish the config file with:
php artisan vendor:publish --tag="laravel-blacklist-config"
Usage
use Bekwoh\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.