abanoubnassem/filament-grecaptcha-field
最新稳定版本:v0.0.11
Composer 安装命令:
composer require abanoubnassem/filament-grecaptcha-field
包简介
Provides a Google reCaptcha V2 field for the Filament Forms
关键字:
README 文档
README
Provides a Google reCaptcha V2 field for the Filament Forms(V2-V3-V4), works in Admin-Panel and Forntend-Forms.
This plugin is built on top of anhskohbo/no-captcha package.
Installation
You can install the package via composer:
composer require abanoubnassem/filament-grecaptcha-field
Since the package depends on anhskohbo/no-captcha package. You may publish the configuration by running:
php artisan vendor:publish --provider="Anhskohbo\NoCaptcha\NoCaptchaServiceProvider"
Configuration
Add NOCAPTCHA_SECRET and NOCAPTCHA_SITEKEY in .env file :
NOCAPTCHA_SECRET=secret-key
NOCAPTCHA_SITEKEY=site-key
(You can obtain them from here)
Usage
use AbanoubNassem\FilamentGRecaptchaField\Forms\Components\GRecaptcha; // admin panel public static function form(Form $form): Form { return $form->schema([ ... GRecaptcha::make('captcha') ]); } //forntend-forms public $captcha = ''; // must be initialized protected function getFormSchema(): array { return [ .... GRecaptcha::make('captcha') ]; }
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
If you discover any security related issues, please create an issue.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 101.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 27
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-20
