Summer Sale! All accounts are 50% off this week.

digital@jfd.co.uk's avatar

Valet and browserSync etc

Hey, Has anyone managed to get browserSync or similar working nice with Valet? Can you point me towards a tutorial?

Thanks in advance

0 likes
2 replies
valerie937's avatar

I just ran into the same issue. I've been searching around to try and find a quick fix, and nothing's popped up yet.

valerie937's avatar

After poking around in the Browsersync docs, I found out you can set more than just the proxy that is covered in the Laravel docs.

I had to change the port to 8000 to work with Valet.

This is what my code looks like now.

mix.browserSync({
    proxy: 'yoursitename.dev',
    port: 8000
});

https://browsersync.io/docs/options

3 likes

Please or to participate in this conversation.