PHP code example of marcogermani87 / filament-captcha

1. Go to this page and download the library: Download marcogermani87/filament-captcha 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/ */

    

marcogermani87 / filament-captcha example snippets


return [

    'width' => 180,
    
    'height' => 50,
    
    'background_color' => [255, 255, 255],
    
];

->plugin(\MarcoGermani87\FilamentCaptcha\FilamentCaptcha::make())

use MarcoGermani87\FilamentCookieConsent\Components\CaptchaField;

protected function getFormSchema(): array
{
    return [
        ...
        CaptchaField::make('captcha')
    ];
}
bash
php artisan vendor:publish --tag="filament-captcha-config"