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
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-25