Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to access a laravel valet app from another device?

I'm trying to connect to access my laravel app from a another device on the same network. Is this possible?


2 Answers

You can give access to everyone to your app by using

valet share

If you want to access it only locally, you can edit you hosts file on your other device and bind the valet URL to your first computer ip

192.168.1.19 laravel.dev

You just have to check if your computer allow remote access.

BTW the valet share command is way more easier :)

like image 172
Mathieu Ferre Avatar answered Sep 02 '25 07:09

Mathieu Ferre


use Valet share

However this only works if you are not serving the app via https using valet secure.

After running valet share, a URL that looks like "2jd437s.ngrok.io" will be generated. And that's what you will use to visit your app remotely.

To cancel, use Ctrl+c

like image 38
Victor Abbah Nkoms Avatar answered Sep 02 '25 06:09

Victor Abbah Nkoms



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!