Skip to content

Instantly share code, notes, and snippets.

View ivan006's full-sized avatar
💭
An ElePHPant never forgets.

Ivan Copeland ivan006

💭
An ElePHPant never forgets.
View GitHub Profile
@vades
vades / laravel-auto-refresh.md
Last active February 20, 2024 18:17
Auto refresh after changes with Laravel Mix

Laravel auto refresh after changes

To achieve this you can use Laravel Mix

  1. Ensure that Node.js and NPM are installed: run node -v and npm -v.
  2. Install Laravel Mix npm install.
  3. Open webpack.mix.js and add mix.browserSync('127.0.0.1:8000');.
  4. Run php artisan serve.
  5. And the npm run watch.

Sources