How to Make Local Laravel Projects Accessible to the Public with Ngrok

If you are developing a Laravel application, and want to show progress to clients, friends or anyone else, maybe you can try starting a Laravel project so that it can be accessed publicly without having to buy and deploy hosting.
How to Make Local Laravel Projects Accessible to the Public with Ngrok
- Visit the site ngrok.com
- Register with email or Google account
- Login to the dashboard
- Download the ngrok application and run it (it will look like a terminal/cmd in general)
- Run the autotoken configuration command, this is mandatory so that our application can sync with the ngrok system (just copy and paste the command in the setup menu)
How to Make Local Laravel Projects Accessible to the Public with Ngrok - Run the command
ngrok http 8000 (sesuaikan dengan nomor port kamu)
- Later in the Ngrok terminal a public URL will appear, now that is the URL of the Laravel project that we synchronized with Ngrok and can be accessed by anyone
Closing
The public URL from Ngrok is not permanent, it is only limited to 2 hours, but don’t worry because we can make another Ngrok http 8000 request when the first request has been completed or expired. So, that’s how to make local Laravel projects accessible to the public with Ngrok