Configuration

Customize Easy Captcha to fit your application's security and design requirements.

Configuration File

After publishing, your configuration file will be located at config/easy_captcha.php.

return [
    'enabled' => env('EASY_CAPTCHA_ENABLED', true),
    'type' => env('EASY_CAPTCHA_TYPE', 'math'), // options: random, math, alphabet, number, google, turnstile
    'font_path' => env('EASY_CAPTCHA_FONT_PATH', 'IndieFlower'),
    // ...
];

Bundled Fonts

You can use the following fonts by name in your .env or config:

Environment Variables

Most options can be controlled directly via your .env file:

EASY_CAPTCHA_ENABLED=true
EASY_CAPTCHA_TYPE=math

Supported Types

EASY_CAPTCHA_TYPE=google
EASY_CAPTCHA_GOOGLE_SITE_KEY=your-site-key-here
EASY_CAPTCHA_GOOGLE_SECRET_KEY=your-secret-key-here

Cloudflare Turnstile Setup

To use Cloudflare Turnstile, set the type to turnstile and provide your site and secret keys:

EASY_CAPTCHA_TYPE=turnstile
EASY_CAPTCHA_TURNSTILE_SITE_KEY=your-site-key-here
EASY_CAPTCHA_TURNSTILE_SECRET_KEY=your-secret-key-here
← Back: Installation Next: Usage Guide →