PHP code example of cleaniquecoders / laravel-blacklist
1. Go to this page and download the library: Download cleaniquecoders/laravel-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/ */
cleaniquecoders / laravel-blacklist example snippets
use CleaniqueCoders\LaravelBlacklist\Rules\Blacklist;
$request->validate([
'email' => [new Blacklist]
]);
// OR
Validator::validate([
'email' => 'malinator.com',
], [
'email' => [new Blacklist],
]);
bash
php artisan vendor:publish --tag="blacklist-config"
bash
php artisan blacklist:install