Description
No CAPTCHA reCAPTCHA For Laravel
With default options :
{!! NoCaptcha::renderJs() !!}
With language support or onloadCallback option :
{!! NoCaptcha::renderJs('fr', true, 'recaptchaCallback') !!}
Display reCAPTCHA
Default widget :
{!! NoCaptcha::display() !!}
With custom attributes (theme, size, callback ...) :
{!! NoCaptcha::display(['data-theme' => 'dark']) !!}
Invisible reCAPTCHA using a submit button:
{!! NoCaptcha::displaySubmit('my-form-id', 'submit now!', ['data-theme' => 'dark']) !!}
Notice that the id of the form is required in this method to let the autogenerated callback submit the form on a successful captcha verification.
Validation
Add 'g-recaptcha-response' => 'required|captcha' to rules array :
$validate = Validator::make(Input::all(), [ 'g-recaptcha-response' => 'required|captcha']);
Recent Courses on Laravel Daily
[NEW] Practical Laravel Security: Packages, Secrets, Supply-Chain Attacks
7 lessons
43 min read
AI Agents/IDEs for Laravel: May 2026 (Claude Code, Codex, OpenCode, etc)
7 lessons
52 min
Next.js Basics for Laravel Developers
11 lessons
58 min