diegomagikal/laravel-tempmail 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

diegomagikal/laravel-tempmail

Composer 安装命令:

composer require diegomagikal/laravel-tempmail

包简介

Validator to block emails from temp mail services

README 文档

README

Validator to block temp mails usage.

Introduction

This package verify if the typed email use a domain from any temporary email services and denies it.

Installation

To get the latest version of this package, add the following line to your composer.json:

"diegomagikal/laravel-tempmail": "*"

Usage

Use the rule tempmail in email validation, like this:

/**
 * Get a validator.
 *
 * @param  array  $data
 * @return \Illuminate\Contracts\Validation\Validator
 */
protected function validator(array $data)
{
    return Validator::make($data, [
        'name' => 'required|string|max:255',
        'email' => 'required|email|max:255|unique:users|tempmail',
        'password' => 'required|min:6|checkpassword|confirmed',
    ]);
}

tempmail

Custom message / translation

Add 'tempmail' key to resources/lang/{YOUR_LANG}/validation.php with the desired message.

 	/*
    |--------------------------------------------------------------------------
    | Custom Validation Language Lines
    |--------------------------------------------------------------------------
    |
    | Here you may specify custom validation messages for attributes using the
    | convention "attribute.rule" to name the lines. This makes it quick to
    | specify a specific custom language line for a given attribute rule.
    |
    */


    'tempmail' => 'Este tipo de e-email não é aceito. Digite seu email real!',

tempmail-pt

Blocked services (growing)

All the domains of the following providers are blocked:

  • temp-mail.org
  • tempm.com
  • getinboxes.com
  • getnada.com

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 132
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固