bekwoh/laravel-blacklist

This package is abandoned and no longer maintained. The author suggests using the https://github.com/cleaniquecoders/laravel-blacklist package instead.

Validation disposable email domain

1.1.0 2023-02-25 01:32 UTC

This package is auto-updated.

Last update: 2023-12-03 07:36:01 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.