该介绍目前仅提供英文版本。
Overview
This package integrates Laravel with Cloudflare’s Turnstile product, the privacy-friendly CAPTCHA alternative.
Installation
composer require ryangjchandler/laravel-cloudflare-turnstile
Add a turnstile entry with key and secret to config/services.php, then create your Turnstile keys in Cloudflare and set TURNSTILE_SITE_KEY and TURNSTILE_SECRET_KEY in .env.
Usage
Add <x-turnstile.scripts /> to your layout, put <x-turnstile /> inside a form to render the widget, and validate the submitted token with the package’s Turnstile rule.