Setting Up Laravel with Ngrok: A Step-by-Step Guide

ArjunAmrutiya
3 min readAug 29, 2023

Introduction

In today’s dynamic development landscape, sharing your locally hosted web applications is crucial for effective collaboration and testing. Ngrok, a powerful tool, comes to the rescue by creating secure tunnels to expose your local server to the internet. In this comprehensive tutorial, we’ll guide you through setting up Laravel with Ngrok on various platforms, covering the installation process and token authentication in detail.

Prerequisites

Before diving into the setup process, ensure you have the following prerequisites in place:

  • PHP and Composer installed
  • Laravel Installer
  • An existing Laravel project
  • Command-line terminal or shell

Installing Laravel

If you’re starting from scratch without a Laravel project, follow these steps:

composer global require laravel/installer

laravel new YourProjectName

cd YourProjectName

Downloading and Installing Ngrok

Begin by signing up for an Ngrok account on their official website.

--

--

ArjunAmrutiya
ArjunAmrutiya

Written by ArjunAmrutiya

👋 Hey there! I'm Arjun Amrutiya, a passionate web developer and blogger who loves all things PHP, Laravel and Vue.js. Welcome to my Medium account!