定制 mram/laravel-hot-reload 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mram/laravel-hot-reload

最新稳定版本:v3.0.0

Composer 安装命令:

composer require mram/laravel-hot-reload

包简介

Laravel hot reload using Browsersync (dev-only)

README 文档

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

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固