PHP code example of niclas-timm / blacklister

1. Go to this page and download the library: Download niclas-timm/blacklister 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/ */

    

niclas-timm / blacklister example snippets


public function store(Request $request) {
  
  $validated = $request->validate([
        'email' => '
bash
php artisan blacklister:install
bash
php artisan blacklister:view
bash
php artisan blacklister:add {values} {--T|type}
bash
# Block emails.
php artisan blacklister:add [email protected] [email protected] --type="emails"

# Block domain.
php artisan blacklister:add blockme.com --type="domains"
bash
php artisan blacklister:remove {values}
bash
php artisan blacklister:update-cache

php artisan blacklister:export {file}

php artisan blacklister:import {file}
bash
php artisan blacklister:verify