PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

MacOS - How to use Laravel Herd and ngrok for a multi-tenant app to receive webhook

haleemhosein

Mar 8th, 2025 05:40 PM

Hi all. I am working on a multi-tenant application that uses the subdomain to identify the tenant e.g. demo.happykids.test.

I read through Laravel Herd docs on sharing a site and this is what I've tried so far with no success:

  • Expose shows an error when starting it saying that I need to be on a paid plan to use a subdomain.
  • ngrok also does not work. Here's the command I'm using
ngrok http --host-header=rewrite demo.happykids.test:80

The funny thing is that ngrok works fine on Windows with Laravel Herd. I read that the Windows version of Herd does not use dnsmasq, so it uses the host file. This issue is the only thing holding me back from fully moving to macOS.

Does anyone know how to get this working?

bobbyiliev

Mar 9th, 2025 11:38 AM

Hey!

I could suggest the following:

  1. Try this instead:

    ngrok http --host-header=demo.happykids.test 127.0.0.1:80
    

    This keeps the correct Host header but points directly to Herd’s internal port.

  2. You can also try mapping demo.happykids.test to 127.0.0.1 in your /etc/hosts just to ensure everything resolves correctly while testing.

If this does not work, it might be worth opening an issue on the Herd support repo to share your use case: 👉 https://github.com/beyondcode/herd-community/issues

Would be great to have better multi-tenant and webhook support out of the box.

- Bobby

haleemhosein

Mar 9th, 2025 12:38 PM

Hi Bobby,

I tried what you suggested but it did not work. Thank you for taking the time to help.

I'll make a post on the Herd support repo soon.