PHP code example of zanysoft / email-checker

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

    

zanysoft / email-checker example snippets


    // [your site path]/app/Http/Requests/RegisterRequest.php
    public function rules()
    {
        return [
               'name' => 'confirmed',
        ];
    }

    // [your site path]/app/Http/Controllers/Auth/RegisterController.php
    protected function validator(array $data)
    {
        return Validator::make($data, [
            'name' => ['

    use ZanySoft\EmailChecker\Rules\EmailExist;

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

 // reture boolean
 EmailChecker::check('[email protected]');
bash
php artisan vendor:publish --provider="ZanySoft\EmailChecker\EmailCheckerServiceProvider"