PHP code example of yepsua / filament-captcha-field
1. Go to this page and download the library: Download yepsua/filament-captcha-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/ */
yepsua / filament-captcha-field example snippets
use Yepsua\Filament\Forms\Components\Captcha;
...
protected function getFormSchema(): array
{
return [
Forms\Components\TextInput::make('username'),
Forms\Components\TextInput::make('password')->type('password'),
Captcha::make('captcha')
];
}
use Yepsua\Filament\Forms\Components\CaptchaImage;
...
protected function getFormSchema(): array
{
return [
Forms\Components\TextInput::make('username'),
Forms\Components\TextInput::make('password')->type('password'),
Forms\Components\TextInput::make('captcha')->
use Yepsua\Filament\Forms\Components\Captcha;
...
protected function getFormSchema(): array
{
return [
Captcha::make('captcha')->config('math')
];
}