New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mojoblanco/domainos

A laravel package for blacklisting or whitelisting specific email providers or domains
14,675 22
Install
composer require mojoblanco/domainos
Latest Version:1.1.2
PHP:~5.6|~7.0
License:MIT
Last Updated:Aug 5, 2018
Links: GitHub  ·  Packagist
Maintainer: mojoblanco

Domainos

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.

Related Packages

padosoft/laravel-composer-security

Security checker for composer.lock.

4,105 31
glaivepro/hidevara

Laravel millipackage that hides variables from getting dumped in the Whoops page...

311,517 27
iwasherefirst2/laravel-multimail

A package to send mails easily from multiple mail accounts with Laravel

103,297 62
minvws/horsebattery-laravel

A Laravel package for the horsebattery password generator

39,496 1

Version History

Version Released PHP License
1.1.2 ~5.6|~7.0 MIT
1.1.0 ~5.6|~7.0 MIT
1.0.0 MIT