All frameworks
Laravel
Use NBForms with Laravel
Skip the FormRequest, Mailable, and Queue setup. NBForms gives your Laravel contact form a complete backend — email notifications, spam protection, and a submissions dashboard — with a single JavaScript fetch call from your Blade template.
Official Laravel docsLaravel
<form id="contact-form" action="https://api.nbforms.com" method="POST"> @csrf <input type="hidden" name="_token_nbf" value="YOUR_TOKEN" /> <label>Name</label> <input type="text" name="name" required /> <label>Email</label> <input type="email" name="email" required /> <label>Message</label> <textarea name="message" required></textarea> <button type="submit">Send</button> <p id="nbsuccess" hidden></p> </form> <script> document.getElementById('contact-form').addEventListener('submit', async function (e) { e.preventDefault() const res = await fetch('https://api.nbforms.com', { method: 'POST', body: new FormData(this) }) const data = await res.json() if (res.ok) { this.hidden = true const p = document.getElementById('nbsuccess') p.textContent = data.message ?? 'Thanks!' p.hidden = false } }) </script>
Why NBForms?
- Works with Laravel 10+ and Blade templates
- Includes @csrf for security-compliant form submission
- No FormRequest, Mailable, or Queue configuration needed
- Progressive enhancement — falls back to standard POST
Add to your Laravel app in minutes
Free tier included. No credit card. No backend setup — just copy the snippet above and go.
Get started free