Level 13
This is used in development and you have to build using npm run dev evertime.
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello , I'm used on vueJS when work on it to type npm run serve and once I change something it will automatically applied on the browser,
But in laravel I dont see that ! should I every time when I make any change to run : npm run development ???
is there any other solution ?
thanks
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.browserSync(process.env.APP_URL);
Then run npm run watch
Or replace the process.env.APP_URL by the ip or something.
Please or to participate in this conversation.