You just add them to your hosts file too on the same ip
192.168.10.10 ats.test
192.168.10.10 foo.localhost
192.168.10.10 bar.localhost
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have set up multi-tenancy per domain/database following the quickstart steps in the stancl/tenancy docs.
https://tenancyforlaravel.com/docs/v3/quickstart
I have got as far as creating the users in the tenant databases using tinker at the last step of the quickstart tutorial but the domains don't work for me. This because I am not quite sure how to set it up in Homestead properly.
I am using Homestead on a windows machine and add the sites to the Homestead.yaml file:
- map: ats.test
to: /home/vagrant/laravel_projects/ATS/public
I then add them to my hosts files in windows and then provision the vagrant box and it works :
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
# ::1 localhost
192.168.10.10 laravel-admin.test
192.168.10.10 ats.test
127.0.0.1 phpmyadmin.test
But if my central domain is ats.test and I add two tenants with domains :
foo.localhost bar.localhost
How do I get these working on homestead?
Please or to participate in this conversation.