承接 zenosyne/filament-enterprise-grecaptcha-field 相关项目开发

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

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

zenosyne/filament-enterprise-grecaptcha-field

最新稳定版本:v1.0.2

Composer 安装命令:

composer require zenosyne/filament-enterprise-grecaptcha-field

包简介

Provides a Google Enterprise reCaptcha field for the Filament Forms

README 文档

README

Provides a Google reCaptcha Enterpise for the Filament Login page.

Latest Version on Packagist Total Downloads

Installation

You can install the package via composer:

composer require zenosyne/filament-enterprise-grecaptcha-field

Configuration

Add these in your .env file :

GOOGLE_RECAPTCHA_PROJECT_ID=
GOOGLE_RECAPTCHA_API_KEY=
GOOGLE_RECAPTCHA_SITE_KEY=

(You can obtain them from here)

Usage

You'll need to create a filament page for your login which extends the original Filament login controller and add the field.

<?php

namespace App\Filament\Pages;

use Filament\Http\Livewire\Auth\Login as BaseLoginPage;
use Zenosyne\FilamentEnterpriseGRecaptchaField\Forms\Components\GRecaptcha;

class Login extends BaseLoginPage
{
    protected function getFormSchema(): array
    {
        $formSchema = parent::getFormSchema();
        $formSchema[] = GRecaptcha::make('g-recaptcha');
        return $formSchema;
    }
}

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.

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 0
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-05