I'm trying to connect to access my laravel app from a another device on the same network. Is this possible?
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 :)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With