cripcha-laravel maintained by cripcha
cripcha/cripcha-laravel
Cripcha for Laravel 10, 11, 12 and 13: a validation rule and a Blade component.
composer require cripcha/cripcha-laravel
php artisan vendor:publish --tag=cripcha-config # optional
CRIPCHA_SITE_KEY=ck_…
CRIPCHA_SECRET=cs_…
<form method="post">@csrf … <x-cripcha /> <button>Send</button></form>
use Cripcha\Laravel\Rules\Cripcha;
$request->validate(['cripcha-response' => ['required', new Cripcha()]]);
// or the string rule: 'cripcha-response' => 'required|cripcha'
CRIPCHA_ENABLED=false in .env.testing: every token accepted in the tests of the application. Messages in fr, en,
es, de, nl, it, pt, uk, ro, ru.