tinyu0/laravels-file-monitor

Laravels file Monitor

0.3 2019-12-16 05:49 UTC

This package is auto-updated.

Last update: 2024-10-09 13:16:43 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads License

1.Require package via Composer(packagist).

composer require "tinyu0/laravels-file-monitor"

2.Publish configuration and binaries.

Suggest that do publish after upgrade LaravelS every time

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

3.Change config/laravels.php: event_handlers Settings.

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

4.Run

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