定制 michaelyousrie/google-recaptcha 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

michaelyousrie/google-recaptcha

Composer 安装命令:

composer require michaelyousrie/google-recaptcha

包简介

README 文档

README

This is a simple package that implements google recaptcha V3 into a laravel application to make it super easy to protect forms against bots and spammers (hopefully).

How to use it?

Simple:

  • you install it from composer using: composer require michaelyousrie/google-recaptcha
  • Publish the config file using php artisan vendor:publish and choose the correct number for the service provider Michael\GoogleRecpatcha\GoogleRecaptchaServiceProvider
  • A new config file will be published to your configuration folder (config/google_recaptcha.php). Add your google recaptcha key and secret credentials there.
  • Then go to your form and add the blade directive @google_recaptcha([FORM-ID]) which will be responsible for the front-end side of the integration.
  • Add the middleware Michael\GoogleRecaptcha\Middlewares\ProtectedByGoogleRecaptcha which will be responsible for the back-end side of the integration.

On a failed recaptcha verification, the user will be redirected back to the previous page redirect()->back() and a log entry will be added to your logs. Very simple.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-07-10