splitforms.com

Contact form · Laravel

Contact form for Laravel and Blade

Build a contact form for Laravel apps and Blade views without setting up mail drivers, queues, or SMTP providers. Submit directly from Blade or relay via Laravel's Http client — complete with spam filtering, notifications, and dashboard history. Free for 500 a month submissions.

  • 500 free / month
  • One endpoint
  • No backend code
Laravel contact form — copy-paste code for splitforms

Key benefits

No backend code

No server, API route, or SDK. Your Laravel form posts straight to one endpoint.

Straight to your inbox

Every submission is emailed to you and saved to a searchable dashboard — spam filtered before it reaches you.

Design without limits

It's your own Laravel markup and styles. Splitforms is only the backend, so nothing constrains how the form looks.

Copy-paste ready

Your Laravel contact form, ready to paste.

Replace YOUR_ACCESS_KEY with the key from your dashboard — that's the whole integration. No SDK to install, no build step, just the blade you already write.

contact.html
{{-- resources/views/contact.blade.php --}}
{{-- Direct Blade contact form posting to Splitforms. No Mailgun or queue worker needed! --}}
<form action="https://splitforms.com/api/submit" method="POST">
  {{-- Splitforms access key --}}
  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY" />

  <label for="name">Name</label>
  <input type="text" id="name" name="name" placeholder="Your name" required />

  <label for="email">Email</label>
  <input type="email" id="email" name="email" placeholder="you@example.com" required />

  <label for="message">Message</label>
  <textarea id="message" name="message" rows="4" placeholder="Your message..." required></textarea>

  {{-- Honeypot field: invisible to humans, catches automated spam bots --}}
  <input type="checkbox" name="botcheck" style="display:none" tabindex="-1" autocomplete="off" />

  <button type="submit">Send Message</button>
</form>

How to add it

How to add a contact form to a Laravel website.

To add a contact form to a Laravel website you need three things: a free splitforms access key, the blade snippet above, and your key pasted into it. No backend, server, or SDK — the form posts to one URL and every submission lands in your inbox and dashboard.

  1. Get your free splitforms access key

    Sign up at splitforms.com, verify your email, and copy your access key from the dashboard. No credit card required.

  2. Drop the Laravel snippet into your project

    Copy the Laravel code example into your project and replace YOUR_ACCESS_KEY with the key from step 1.

  3. Receive submissions in your dashboard

    Submissions arrive in the splitforms dashboard within seconds. Free includes owner email notification attempts; Pro adds Slack, Discord, Sheets, or any signed webhook URL.

Where submissions go

Where do your Laravel form submissions go?

Every submission is emailed to you and saved to a searchable dashboard — spam filtered before it ever reaches you. Search, export to CSV, or forward it to a webhook or Slack on Pro.

  • 500 submissions a month, free to start
  • Honeypot + automatic spam scoring on every plan
  • Signed webhooks to Slack, Discord, your server
Laravel contact form submissions in the splitforms dashboard

No backend needed

Do you need a backend for a Laravel form? No.

Your Laravel form posts standard FormData to one URL. Splitforms validates the access key, runs its spam checks, and forwards it to your email — so there's no server, API route, or database for you to build or maintain.

  • Works directly in Blade views or relayed via Laravel's Http client
  • No mail driver, queue setup, or transactional email service needed
  • Honeypot protection and submission dashboard included free
How splitforms processes a Laravel form submission

Best practices

What a production-ready Laravel form needs.

The difference between a form that works in the demo and one that survives launch traffic — the production-tested defaults, in priority order.

  • Keep the honeypot field botcheck hidden with style="display:none" and tabindex="-1".
  • Store access keys in your .env and config/services.php file when using the controller forwarding pattern.
  • Whitelist your Laravel application domain in the Splitforms dashboard to prevent unauthorized key reuse.
Production-ready Laravel contact form best practices

Questions

Laravel contact form questions.

Anything missing? Email us, we read every message.

A person reading answers to common questions
How do I add a contact form to Laravel without configuring mail drivers?

Paste the Blade form snippet into your template with action="https://splitforms.com/api/submit" and your access_key. Submissions are routed to your Splitforms dashboard and emailed to you automatically, skipping mail driver setup entirely.

Can I still run Laravel form validation before Splitforms receives it?

Yes. Post the form to a Laravel route, validate input with $request->validate(...), and use Laravel's Http::asForm()->post('https://splitforms.com/api/submit', ...) to forward the clean data. See the controller snippet above.

Do I need @csrf on a Blade form that posts to Splitforms?

No. External POST requests to Splitforms do not trigger Laravel's CSRF verification. You only need @csrf if the form action targets a route handled by your Laravel application's web middleware group.

Does Splitforms support webhook delivery for Laravel apps?

Yes. On Pro plans, Splitforms can fire signed webhooks directly to a Laravel route in your application whenever a submission arrives, allowing you to trigger internal events or database logs effortlessly.

Direct forms do not require @csrf in Blade

When your Blade form posts directly to https://splitforms.com/api/submit, you do not need Laravel's @csrf token directive. Splitforms is an external service authenticated by your access_key. Only include @csrf if submitting to an internal Laravel route first.

Use Http::asForm() when relaying via Laravel Http client

When forwarding from a Laravel controller, call Http::asForm()->post(...) so the payload is formatted as standard form data (application/x-www-form-urlencoded or multipart) matching standard form submissions.

Show 1 more questions
Keep the access key in config/services.php

When relaying from Laravel, add SPLITFORMS_ACCESS_KEY to your .env file and reference it through config/services.php rather than hardcoding credentials inside controllers.

View all FAQs

Ship your Laravel contact form in 60 seconds.

Free to start on 500 submissions a month. Need Slack alerts, signed webhooks, or file uploads? Pro unlocks them for $5/mo — so you only pay once you outgrow free.

  • No credit card required
  • 500 free submissions
  • Setup in minutes
Two people celebrating a working contact form