Skip to main content

Installation

Requires PHP 8.0+

Install via Composer

You may install Laravel Captcha via the Composer package manager:

composer require rahul900day/laravel-captcha

Publish the config

Next, you should publish the Captcha configuration file using the vendor:publish Artisan command. The captcha configuration file will be placed in your application's config directory:

php artisan vendor:publish --tag="captcha-config"

Update .env file

Then, set the CAPTCHA_DRIVER environment variable as well as sitekey and secret credentials within your application's .env file:

CAPTCHA_DRIVER=turnstile
CAPTCHA_SITE_KEY="{Your Site Key}"
CAPTCHA_SECRET_KEY="{Your Site Secret}"