Apr 27, 2026
0
Level 1
Solution to add a public domain to Laravel Herd
Introducing herdomain
After an extensive search through many related threads on various forums—including this one on Laracasts—I decided to create a small, simple shell tool to add a public domain to a Laravel Herd installation.
What It Does
herdomain connects a public domain to an existing Herd project without changing Herd's global .test TLD and without renaming your project folder.
It handles the entire setup process by:
- Creating a Herd alias
- Writing a generated Nginx vhost
- Requesting a Let's Encrypt certificate through Certbot
- Installing a renewal hook
- Updating the Laravel
APP_URLconfiguration
Works with or without www., even has support for wildcard cert generation. Tested on a few projects and 2 of my Mac`s. Works fine.
Hope it will be helpful, feedback are welcome.
Please or to participate in this conversation.