Home / Snippets / Getting Started With Expose to Share Local Laravel Sites Online
Getting Started With Expose to Share Local Laravel Sites Online cover

Getting Started With Expose to Share Local Laravel Sites Online

315

2 years ago

0 comments

In this short snippet we'll be getting into setting up Expose to share our site online with a line of command.
Expose Dashboard

Step 1: Install Expose


First, you need to install Expose globally using composer command.
composer global require beyondcode/expose
Do note that you need the global composer directory in your path.
export PATH=~/.composer/vendor/bin:$PATH

Step 2: Share Your Website Online


Now that you have to expose installed you can run the share command which will create a link that's accessible on the internet.
expose share http://localhost:8000

# or if you are using local domain
expose share example-app.test
Do note that you need a token that you can generate from BeyondCo.de so make sure to register for a free account first.

By now you should be able to share your local Laravel development site online with your colleague. Thanks for reading and do check out our other tutorials for more guides!

Links

notion avatar

Ahabz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

If you like our tutorial, support us by being our Patreon or buy us some coffee ☕️

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this