laravels-file-monitor maintained by tinyu0
laravels-file-monitor
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}