PHP code example of empinet / laravel-email-validation

1. Go to this page and download the library: Download empinet/laravel-email-validation 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/ */

    

empinet / laravel-email-validation example snippets


use Empinet\EasyEmailApi\Rules\EasyEmailApi;

$request->validate([
    'email' => ['

new EasyEmailApi([
    'disallow_free' => true,
    'disallow_role' => true,
    'min_score' => 50,
])
bash
php artisan vendor:publish --tag=easyemailapi-config