EU CAPTCHA for Laravel
Laravel is a PHP web application framework with expressive, elegant syntax designed for building modern web applications with developer-friendly tooling. Protect your Laravel application from bots and form spam with a privacy-first, EU-hosted CAPTCHA that works with Laravel's request validation pipeline.
Why choose Myra EU CAPTCHA?
Interaction-free user experience
No puzzles, no clicks – invisible bot protection with zero user friction.
Digital sovereignty made in Germany
Fully GDPR-compliant, no cookies, no tracking – developed and hosted in Germany.
Intelligent threat detection
Smart protection trained by more than 100 billion daily Myra CDN signals.
Proven technology
Over 5 billion successfully secured authentication attempts.
How the integration works
1. Create an EU CAPTCHA account
Creating an account is completely free, all you need is a valid email address and you’re ready to go. Choose a plan that covers your needs. The first 3 months are free of charge.
Create an Account2. Create a sitekey
Create a sitekey in the EU CAPTCHA dashboard for the domain you want to protect. Provide a clear label so you can easily identify it later. This sitekey links the widget on your Laravel application to your EU CAPTCHA account.
3. Install the EU CAPTCHA PHP module
Require the EU CAPTCHA PHP client via Composer and add your secret key to your .env file.
View Laravel integration guide4. Add the widget and verify the token
Load verify.js and place the EU CAPTCHA widget div in your Blade templates, then verify the eu-captcha-response token in your controller or Form Request class before processing.
View server-side verification guide
5. The EU CAPTCHA widget will appear in your Laravel application.
Frequently Asked Questions
How do I add EU CAPTCHA to a Laravel application?
Require the EU CAPTCHA PHP client via Composer and add your secret key to .env. In your Blade templates, load verify.js and place the EU CAPTCHA widget div with your sitekey inside the form. In your controller or Form Request, read $request->input('eu-captcha-response') and call the client's verify method before processing the submitted data.
Does EU CAPTCHA work with Laravel's Form Request validation?
Yes. The cleanest integration in Laravel is adding the CAPTCHA verification inside a custom Form Request class. Override the withValidator method or add a custom rule in the rules array that calls the EU CAPTCHA PHP client. If verification fails, Laravel's validation response automatically returns the user to the form with the appropriate error message.
Is there an official EU CAPTCHA package for Laravel?
EU CAPTCHA provides an official PHP client via Composer that works with Laravel. You can bind it in a service provider as a singleton and inject it into your controllers or Form Request classes using Laravel's dependency injection container. This follows standard Laravel patterns and makes the CAPTCHA service available throughout your application.
How do I verify a CAPTCHA token in a Laravel controller?
Inject the EU CAPTCHA PHP client into your controller via the constructor or method injection. In your store or update method, call $captcha->verify($request->input('eu-captcha-response')) after retrieving the token from the request. If verification fails, use back()->withErrors(['captcha' => 'Verification failed']) to redirect the user back to the form.
Can I use EU CAPTCHA with Laravel Livewire?
Yes. In a Livewire component, include the EU CAPTCHA widget div in your Blade template with the sitekey. When the form is submitted through a Livewire action, read the eu-captcha-response from the request using request()->input('eu-captcha-response') and call the EU CAPTCHA PHP client to verify it before running your component action logic.
How do I protect Laravel's default authentication forms with EU CAPTCHA?
Override Laravel's default login and registration controllers or use Laravel Fortify's pipeline to add EU CAPTCHA verification. For Breeze or Jetstream, modify the store method in the auth controllers to include the verification step before the standard authentication logic. Add the widget div to the corresponding Blade views.
Is EU CAPTCHA GDPR compliant for Laravel applications?
Yes. EU CAPTCHA is operated by an EU-based company, is hosted entirely in Germany, and does not rely on US cloud providers or infrastructure subject to US surveillance laws. The service processes only the data necessary to provide and verify the CAPTCHA (such as IP address and technical browser or device information) in line with the requirements of the GDPR. Your organization remains responsible for providing transparent privacy information, selecting an appropriate legal basis, and obtaining any required consent for your specific Laravel implementation. This information does not constitute legal advice; please consult your legal counsel for an assessment of your individual case.
Ready for a better CAPTCHA?
Experience invisible bot protection with privacy‑first, GDPR‑compliant verification made and hosted in Germany. Try Myra EU CAPTCHA now 3 months for free and secure your web forms without adding friction for your users.
Privacy-first technology
We guarantee zero data transfer to third-country jurisdictions.
Read our privacy policyFast and easy setup
We offer ready-made integrations for many CMS and popular frameworks.
Read our quick start guide