PHP code example of lucenarenato / laravel-email-domain-blacklist
1. Go to this page and download the library: Download lucenarenato/laravel-email-domain-blacklist library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lucenarenato / laravel-email-domain-blacklist example snippets
public function store(Request $request) {
$this->validate($request,
['email' => '
Lucenarenato\EmailDomainBlacklist\EmailDomainBlacklistServiceProvider::class,
public function store(Request $request) {
$this->validate($request,
['email' => '
// app/Console/Kernel.php @schedule
// ...
$schedule->command('blacklist:update-email-domains')
->monthly()
->sundays()
->at('05:00')
->withoutOverlapping()
->sendOutputTo(storage_path('logs/email-domains-blacklist.txt'));
// ...
php artisan vendor:publish --provider="Lucenarenato\EmailDomainBlacklist\EmailDomainBlacklistServiceProvider" --tag=config
php artisan blacklist:update-email-domains