跳到正文

Laravel Cloudflare Turnstile

活跃
ryangjchandler/laravel-cloudflare-turnstile

一个用于集成 Cloudflare Turnstile 的简单 Laravel 扩展包:提供渲染组件的 Blade 组件和校验令牌的验证规则。

在 GitHub 查看
星标
464
Fork
32
关注
464
未关闭 Issue
3

该介绍目前仅提供英文版本。

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.

按共同分类和标签排序的同类开源项目。

全部安全项目 →