PHP code example of jeffersongoncalves / laravel-queue-worker
1. Go to this page and download the library: Download jeffersongoncalves/laravel-queue-worker 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/ */
jeffersongoncalves / laravel-queue-worker example snippets
return [
'token' => env('QUEUE_WORKER_TOKEN'),
'allowed_root' => env('QUEUE_WORKER_ALLOWED_ROOT'),
'route_prefix' => env('QUEUE_WORKER_ROUTE_PREFIX', 'api'),
'route_middleware' => ['api'],
'dedup_window_hours' => env('QUEUE_WORKER_DEDUP_WINDOW_HOURS', 24),
'php_binary_map' => [
// '8.1' => '/usr/bin/php8.1',
// '8.2' => '/usr/bin/php8.2',
// '8.3' => '/usr/bin/php8.3',
],
];
bash
php artisan vendor:publish --tag=queue-worker-config
bash
php artisan vendor:publish --tag=queue-worker-migrations
php artisan migrate