PHP code example of insign / dumb-emails-validator
1. Go to this page and download the library: Download insign/dumb-emails-validator 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/ */
insign / dumb-emails-validator example snippets
use Illuminate\Support\Facades\Validator;
$validator = Validator::make($request->all(), [
'email' => '
return [
'corrections' => [
'gmal.com' => 'gmail.com', // Add your custom corrections here
// ...
],
'message' => "Did you mean @:correct_domain?" // Change the default message, you can use :attribute and :correct_domain placeholders
];