PHP code example of zenosyne / filament-enterprise-grecaptcha-field
1. Go to this page and download the library: Download zenosyne/filament-enterprise-grecaptcha-field library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zenosyne / filament-enterprise-grecaptcha-field example snippets
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;
}
}