2017 © Pedro Peláez
 

library laravel-email-validator

Validation rule to validate email for Laravel

image

equipc/laravel-email-validator

Validation rule to validate email for Laravel

  • Wednesday, January 10, 2018
  • by equipc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 43 % Grown

The README.md

Laravel Email Validator

Validate email addresses in Laravel 7.x, (*1)

Installation

  • The package could be installed via Composer
composer require equipc/laravel-email-validator
  • Publish the configuration file using the command below
php artisan vendor:publish --provider="EquiPC\EmailValidator\EmailValidatorServiceProvider" --tag="config"
  • Configure your Quick Email Verification key in your .env file. You can retrieve this API key from the Quick Email Verification control panel.
QUICKEMAILVERIFICATION_KEY=your-api-key

Usage

  • add the isValidEmail rule to the validator
'email' => 'required|email|isValidEmail'

Customizing the error message

If you want to modify the error message, you can publish the lang files with this command:, (*2)

php artisan vendor:publish --provider="EquiPC\EmailValidator\EmailValidatorServiceProvider" --tag="lang"

This will publish this file to resources/lang/vendor/emailValidator/en/validation.php., (*3)

return [
    "is_invalid_email" => "This email is invalid.",
 ];
 ```

 If you want to translate the values to, for example, French, just copy that file over to `resources/lang/vendor/emailValidator/fr/validation.php` and fill in the French translations.

## Sandbox mode

You can enable sandbox mode in your `.env` file

QUICKEMAILVERIFICATION_SANDBOX=true ```, (*4)

The Versions

10/01 2018

dev-master

9999999-dev https://github.com/EquiPC/laravel-email-validator

Validation rule to validate email for Laravel

  Sources   Download

MIT

The Requires

 

by Michel LAURENT

10/01 2018

1.1.0

1.1.0.0 https://github.com/EquiPC/laravel-email-validator

Validation rule to validate email for Laravel

  Sources   Download

MIT

The Requires

 

by Michel LAURENT

10/01 2018

1.0.0

1.0.0.0 https://github.com/EquiPC/laravel-email-validator

Validation rule to validate email for Laravel

  Sources   Download

MIT

The Requires

 

by Michel LAURENT