Google reCaptcha V2 field
Provides a Google reCaptcha V2 field for the Filament Forms(V2-V3), works in Admin-Panel and Forntend-Forms.
Author:
Abanoub Nassem
Documentation
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.
The author
From the same author
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Data Lens
Advanced Data Visualization for Laravel Filament - a premium reporting solution enabling custom column creation, sophisticated filtering, and enterprise-grade data insights within admin panels.
Padmission
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese
