Use Ngrok on Laravel project

How to use Ngrok on a Laravel project

Posted by Luke Beeno on January 6, 2023

Use Ngrok on Laravel project

How to use Ngrok on a Laravel project

Posted by Luke Beeno on January 6, 2023

Ngrok is a tool to create a secure way to locally hosted projects. It expose locally hosted application over the web by a publicly accessible web url.

Here are the steps to run a Laravel project on Ngrok:

step 1. create an account and login to ngrok website

https://dashboard.ngrok.com/signup

step 2. Install ngrok for windows

step 3. Run ngrok and enter auth token

$ngrok authtoken ############

If you have issues running ngrok command, follow this tutorial https://wecode101.com/how-to-fix-error-ps1-can-not-be-loaded-because-running-scripts-is-disabled-on-this-system.

step 4. start laravel server on the port you desire

$php artisan serve --port=3000

step 5. start ngrok on the same port

$ngrok http 3000

step 6. copy ngrok url from command terminal and paste in browser

Any question?
This field is required
Your question have been successfully submitted and will be reviewed before published
Please login to ask a question