Are you sure your application is running on localhost:8000? Also you need to specify which files or directories to watch
Source: https://www.npmjs.com/package/laravel-elixir-browser-sync
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
i want try browserSync, but have no connection. What I am doing wrong?
I use windows, xampp, php artisan serve on project ... with this proxy setting.
mix.less('app.less')
.browserSync({ proxy: 'localhost:8000' });
[BS] Proxying: http://localhost:8000
[BS] Access URLs:
--------------------------------------
Local: http://localhost:3000
External: http://192.168.1.137:3000
--------------------------------------
UI: http://localhost:3001
UI External: http://192.168.1.137:3001
--------------------------------------
[BS] Watching files...
ps: I have last elixir version 3.3.1
Ok... got it to work
$ php artisan serve --host=0
And use
mix.browserSync({proxy: 'localhost:8000'});
Please or to participate in this conversation.