Skip to content

Defer the captcha site key until the view renders - #127

Merged
aerni merged 1 commit into
mainfrom
defer-captcha-site-key
Oct 22, 2026
Merged

aerni merged 1 commit into
mainfrom
defer-captcha-site-key

Conversation

@aerni

@aerni aerni commented Oct 22, 2026

Copy link
Copy Markdown
Owner

@captchakey currently returns the site key during Blade compilation, so view:cache crashes when CAPTCHA_KEY is unset. Return PHP that prints the key when the view renders. A missing key still fails when a captcha field is actually rendered.

view:cache compiles @captchakey immediately, which crashes when CAPTCHA_KEY is unset.
@aerni
aerni merged commit 92aafac into main Oct 22, 2026
25 checks passed
@aerni
aerni deleted the defer-captcha-site-key branch October 22, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant