leokhoa / laragon

Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.
https://laragon.org
4.16k stars 354 forks source link

[Feature Request] Auto reload #639

Open bckelley opened 5 months ago

bckelley commented 5 months ago

Anyway to get the the browser to reload when ever a file is saved in the project directory? I mainly work in PHP JS HTML/CSS

SubhanRaj commented 5 months ago

@bckelley

For Laravel, you can use Laravel Mix along with browser-sync this will solve the case, I have explained all the steps in this gist: https://gist.github.com/SubhanRaj/dc61c622730d34249d2da444eb3443a5

And for Core PHP, you can use VSCode Live Server Extenstion's dynamic serving approach, as explained in this StackOverflow Answer: https://stackoverflow.com/a/64542693/11389364