mram/laravel-hot-reload

Laravel hot reload using Browsersync (dev-only)

Maintainers

Package info

github.com/Mramkk/hot-reload

pkg:composer/mram/laravel-hot-reload

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v3.0.0 2025-12-25 17:04 UTC

This package is not auto-updated.

Last update: 2026-03-20 16:31:36 UTC


README

Hot reload for Laravel applications using BrowserSync.
This package is designed as a development-only dependency with zero global npm installs.

Installation (Development Only)

This package is intended only for local development.

composer require mram/laravel-hot-reload

Requirements

PHP 7.4+

Laravel 8+

Node.js (npm)

ℹ️ BrowserSync is installed automatically as a local dev dependency if it is not already available.
❌ No global npm install -g browser-sync is required.

Usage

Start the Laravel development server with hot reload enabled:

php artisan serve:hot



Command Examples

Run with custom ports:
php artisan serve:hot --laravel-port=8080 --bs-port=3001


Hot Reload (Watched Files)

By default, the following files trigger a browser reload:

app/**/*.php

resources/views/**/*.blade.php

routes/**/*.php

public/css/**/*.css

public/js/**/*.js


Customize Watched Files

Publish the configuration file:
php artisan vendor:publish --tag=hot-reload-config

Then edit:
config/hot-reload.php