PHP code example of ilyasapunkov / orchid-captcha

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/ */

    

ilyasapunkov / orchid-captcha example snippets


php artisan vendor:publish --tag=orchid-captcha

php artisan vendor:publish --tag=orchid-captcha-config
php artisan vendor:publish --tag=orchid-captcha-assets
php artisan vendor:publish --tag=orchid-captcha-views
php artisan vendor:publish --tag=orchid-captcha-lang

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' => ['