tinyu0/laravels-file-monitor

Laravels 文件监控器

0.3 2019-12-16 05:49 UTC

This package is auto-updated.

Last update: 2024-09-09 13:07:33 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads License

1. 使用 Composer(packagist)安装包。

composer require "tinyu0/laravels-file-monitor"

2. 发布配置和二进制文件。

建议在每次升级 LaravelS 后都进行发布

php artisan laravels publish
# Configuration: config/laravels.php
# Binary: bin/laravels bin/fswatch

3. 修改 config/laravels.php 中的 event_handlers 设置 设置

    'event_handlers'           => [
        'WorkerStart' => \Tinyu0\Laravels\Monitor\Monitor::class
    ],

4. 运行

php bin/laravels {start|stop|restart|reload|info|help}