Laravel - Compiling Assets - Browsersync Reloading

BrowserSync can automatically monitor your files for changes, and inject your changes into the browser without requiring a manual refresh. You may enable support for this by calling the mix.browserSync() method:

    
    mix.browserSync('laravel.test');
	

BrowserSync options may be specified by passing a JavaScript object to the browserSync method:

    
    mix.browserSync({
        proxy: 'laravel.test'
    });
	

Next, start webpack's development server using the npm run watch command. Now, when you modify a script or PHP file you can watch as the browser instantly refreshes the page to reflect your changes.