PHP code example of tintnaingwin / email-checker

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

    

tintnaingwin / 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 TintNaingWin\EmailChecker\Rules\EmailExist;

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

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