{"repo":"coderflexx/laravel-turnstile","free":true,"listed":false,"github":"https://github.com/coderflexx/laravel-turnstile","clone":"git clone https://github.com/coderflexx/laravel-turnstile.git","description":"Integrate Cloudflare Turnstile (CAPTCHA alternative) into your Laravel application","language":"PHP","stars":118,"topics":["cloudflare","turnstile","captcha","laravel","laravel-turnstile","bot-protection","cloudflare-turnstile","laravel-package","php","spam-protection"],"license":"MIT","category":"dashboards-admin","readme_excerpt":"Laravel Turnstile Laravel Turnstile , is a package to help you implement cloudflare turnstile easily, and with no time. Installation You can install the package via composer: You can publish the config file with: This is the contents of the published config file: Optionally, you can publish the views using: Turnstile Keys To be able to use Cloudflare Turnstile , you need to get the SiteKey , and the SecretKey from your Cloudflare dashboard After Generating the keys , use TURNSTILE SITE KEY , and TURNSTILE SECRET KEY in your .env file If you want to test the widget, you can use the Dummy site keys and secret keys that Cloudflare provides. Usage Turnstile Widget Component Once you require this package, you can use the turnstile widget in your form, like the following As you can see, the widget has few options to use. You can know more about them in the configuration section Turnstile Backend Validation Once you used the widget component, in the frontend. You can validate Cloudflare Response, by using the validate method. Here's an example: You may, optionally, send the Cloudflare response with the validation method. Something like the following: Turnstile Custom Rule If you want clean validation, you can use the TurnstileCheck custom rule, along with your form validation. Here's an example: The custom rule, will use the same logic, as the backend validation , but instead will check for the response, and return a validation message, if the captcha fails. You can change the conte","default_branch":null,"files":null,"tree":[],"storefront":"/r/coderflexx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/coderflexx/laravel-turnstile/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}