mojoblanco/domainos 问题修复 & 功能扩展

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

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

mojoblanco/domainos

Composer 安装命令:

composer require mojoblanco/domainos

包简介

A laravel package for blacklisting or whitelisting specific email providers or domains

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

A laravel package for allowing or blocking specific email domains

Installation

Open your terminal or command prompt, go to the root directory of your Laravel project, then follow the following steps.

  1. Run

    composer require mojoblanco/domainos 
    
  2. Add the provider to the providers array in config/app.php

    If you are using laravel 5.5, you don't need to place the code below

    Mojoblanco\Domainos\DomainosServiceProvider::class,
    
  3. Run composer dump-autoload

  4. Publish the config file

    php artisan vendor:publish --provider="Mojoblanco\Domainos\DomainosServiceProvider" --tag="config"
    

Usage

  1. Go to the config/domainos.php file and customize it.
    There are two options;
    block is for blacklisting domains,
    allow is for whitelisting.

  2. Go to the validation of the email address and add the following

'email' => 'domainos:allow'
  1. Test the validation

Notice

This package can be very useful when you want to prevent or allow specific email addresses during user registration.

How can you thank me?

You can like this repo, follow me on github and twitter Thanks.

统计信息

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

GitHub 信息

  • Stars: 22
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固