marcel-strahl/temporary-email-validator

Laravel 的临时电子邮件地址验证器

v3.0.0 2023-01-23 23:19 UTC

This package is auto-updated.

Last update: 2024-09-24 02:57:51 UTC


README

识别临时电子邮件地址作为 Laravel 验证规则

Gitworkflow Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License composer.lock License

安装

composer require marcel-strahl/temporary-email-validator

从 5.3 版本开始,您不需要以下步骤,因为我们使用 Laravel 的 Discover 加载我们的包。将 ServiceProvider 添加到 config/app.php

MarcelStrahl\TemporaryValidator\TemporaryValidatorServiceProvider::class,

将规则(名为 not_temporary_email 的规则)像任何其他规则一样添加到您想使用的验证器中

$rules = ['required|email|not_temporary_email'];

提示

我不是 "临时电子邮件检测" 的创建者,但我已经将以下包改成了 Laravel 验证规则!

主要包 Temporary E-Mail Detection: https://github.com/jprangenbergde/temporary-email-detection