Download the PHP package mennen-online/laravel-queue-watcher without Composer
On this page you can find all versions of the php package mennen-online/laravel-queue-watcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mennen-online/laravel-queue-watcher
More information about mennen-online/laravel-queue-watcher
Files in mennen-online/laravel-queue-watcher
Package laravel-queue-watcher
Short Description Automatically restart Queue when local PHP files change
License MIT
Homepage https://github.com/mennen-online/laravel-queue-watcher
Informations about the package laravel-queue-watcher
Automatically restart Queue when local PHP files change
Inspired by spatie/laravel-horizon-watcher, this package contains Artisan Command queue:watch
that will start the default Queue worker and automatically restart it
when any PHP file is created, updated or deleted.
Also you can provide the --queue=
option to define another queue than default to be watched.
To disable Job and Queue Timeout, use the --timeout=
option with value 0.
This command is meant to be used in local environment.
Installation
You can install the package via composer:
This is the contents of the published config file:
Usage
Run php artisan queue:watch
to start default queue. When a PHP file in your project gets created, updated or deleted, Queue will automatically restart.
Run php artisan queue:watch --queue=another_queue
to start another_queue and restart it automatically.
Run php artisan queue:watch --timeout=0
to disable queue worker timeout.
Testing
Credits
- Freek Van der Herten for the inspiration for this Package
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-queue-watcher with dependencies
illuminate/contracts Version ^9.0|^10.0|^11.0|^12.0
spatie/file-system-watcher Version ^1.1.1
spatie/laravel-package-tools Version ^1.13.6