Fix: Resolve ENV parsing issue and implement Cloudflare Turnstile

This commit is contained in:
2025-12-23 08:38:51 +07:00
parent 01d4a925ae
commit 12ae6fe45d
11 changed files with 92 additions and 48 deletions

View File

@@ -0,0 +1,11 @@
@props(['theme' => 'auto', 'size' => 'normal', 'tabindex' => 0])
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<div class="cf-turnstile"
data-sitekey="{{ env('TURNSTILE_SITE_KEY') }}"
data-theme="{{ $theme }}"
data-size="{{ $size }}"
data-tabindex="{{ $tabindex }}"
{{ $attributes }}
></div>