Laravel Valet with

There is a very power command with Laravel Valet which is valet share. However, the problem is the URL will not reserve. Once you restart the process, there will be new URL will be generated.

When I due with payment gateway, they required an URL can be accessed from outside. So is the solution to keep the sub-domain.

Once you install, here is the command:-

>lt --port 80 --subdomain mysubdomain --local-host

It will proxy the valet URL to match with the localtunnel URL.

However, you will still have another issue, all your website link is not showing, it is still pointing to

In this case you can use Laravel URL class, URL::forceRootUrl('');

It will change the URL to the input that you had set.

I hope this tutorial can help you in your development. Happy Coding~