eighteen73 / laravel-turnstile

A Cloudflare Turnstile package for Laravel forms
MIT License
1 stars 1 forks source link

Livewire support #2

Open edjeavons opened 5 months ago

edjeavons commented 5 months ago

It would be useful for this could also work with Livewire form submissions.

edjeavons commented 5 months ago

I think this is best achieved using this callback to add a Livewire request header with the token. The token can then be checked at the start of the Livewire request, either automatically or when doing other validation.

I'll test the idea on a website now and if it works out we can look into adding some automatic logic into the package.