Package Data | |
---|---|
Maintainer Username: | mojoblanco |
Maintainer Contact: | mojoblanco@gmail.com (:John Olawale) |
Package Create Date: | 2017-05-07 |
Package Last Update: | 2018-08-05 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-11 15:10:49 |
Package Statistics | |
---|---|
Total Downloads: | 13,840 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 22 |
Total Watchers: | 3 |
Total Forks: | 5 |
Total Open Issues: | 2 |
A laravel package for allowing or blocking specific email domains
Open your terminal or command prompt, go to the root directory of your Laravel project, then follow the following steps.
Run
composer require mojoblanco/domainos
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,
Run composer dump-autoload
Publish the config file
php artisan vendor:publish --provider="Mojoblanco\Domainos\DomainosServiceProvider" --tag="config"
Go to the config/domainos.php
file and customize it. There are two options;
block
is for blacklisting domains,
allow
is for whitelisting.
Go to the validation of the email address and add the following
'email' => 'domainos:allow'
This package can be very useful when you want to prevent or allow specific email addresses during user registration.
You can like this repo, follow me on github and twitter Thanks.