PHP code example of mennen-online / laravel-queue-watcher
1. Go to this page and download the library: Download mennen-online/laravel-queue-watcher library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mennen-online / laravel-queue-watcher example snippets
return [
/*
* Laravel Queue will be restarted when any PHP file inside these directories
* get created, updated or deleted. You can also specify other kinds
* of files here.
*/
'paths' => [
app_path(),
config_path(),
database_path(),
resource_path('views'),
base_path('.env'),
base_path('composer.lock'),
],
/*
* This command will be executed to start Laravel Queue.
*/
'command' => 'php artisan queue:work',
];