Skip to content

Example: Laravel form with server-side verification #126

Open

Description

@cport1

examples/ has runnable integrations for Hono, Supabase, FastAPI and a plain Node contact form. Nothing covers PHP yet.

What to do

Add examples/laravel/ with:

  • a Blade form that renders the checkbox widget
  • a validation rule (or middleware) that verifies the posted fcaptcha_token against /turnstile/v0/siteverify using Laravel's HTTP client
  • feature tests for a valid, a replayed and a missing token (fake the HTTP call)
  • a README with how to run it against a local FCaptcha server

Done when

The example runs from its README, and a link is added under "Runnable examples" in the main README.

Activity

  1. added
    documentation
    good first issue
    on Oct 13, 2026
  2. cport1 commented on Nov 17, 2026

    @cport1
    ContributorAuthor

    Thanks, @Vedant-200 — a runnable Laravel example would be welcome. Please keep it focused on the Blade form, server-side rule, tests, and run instructions requested above. Keep the verification secret server-side and make sure rejected/replayed, missing, and unavailable verification never execute the protected action. Please link the current FCaptcha integration contract and include the commands/results used to test the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions