承接 equipc/laravel-email-validator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

equipc/laravel-email-validator

Composer 安装命令:

composer require equipc/laravel-email-validator

包简介

Validation rule to validate email for Laravel

README 文档

README

Validate email addresses in Laravel 7.x

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:

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

This will publish this file to resources/lang/vendor/emailValidator/en/validation.php.

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

统计信息

  • 总下载量: 446
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固