1. Go to this page and download the library: Download ilyasapunkov/orchid-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/ */
use IlyaSapunkov\OrchidCaptcha\Screen\Fields\Captcha;
// In your screen's layout method
public function layout(): array
{
return [
// ... other fields
Captcha::make('captcha')
->title('Verify you are human'),
];
}
use IlyaSapunkov\OrchidCaptcha\Rules\CaptchaRule;
public function yourMethod(Request $request)
{
$request->validate([
'captcha' => ['
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.