Search code examples
laravellaravel-valet

How to share subdomain site using laravel valet?


I'm developing site with subdomain. I am using laravel valet as well So, It's currently look like https://app.portal.test/ in my local environment. I want to share this site using laravel valet sharing site option sharing-sites-via-ngrok. But it's not working. So I guess I want to do something different for sharing with subdomain. Anyone have any idea how to do for valet share for subdomain?


Solution

  • TLDR: You can't

    You cant share https://app.portal.test (.test), thats for local only, it doesn't resolve on internet.


    If you have public ip (whatsmyip.com) and that ip opens your localhost, then you can create a virtual host that point to that IP but you still need a real domain not test.

    Using ngork is best option you have, You can also get a cheap $3 vps and point your domain to it.