[0924b6c] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | return [
|
---|
| 4 |
|
---|
| 5 | /*
|
---|
| 6 | |--------------------------------------------------------------------------
|
---|
| 7 | | Default Queue Connection Name
|
---|
| 8 | |--------------------------------------------------------------------------
|
---|
| 9 | |
|
---|
| 10 | | Laravel's queue API supports an assortment of back-ends via a single
|
---|
| 11 | | API, giving you convenient access to each back-end using the same
|
---|
| 12 | | syntax for every one. Here you may define a default connection.
|
---|
| 13 | |
|
---|
| 14 | */
|
---|
| 15 |
|
---|
| 16 | 'default' => env('QUEUE_CONNECTION', 'sync'),
|
---|
| 17 |
|
---|
| 18 | /*
|
---|
| 19 | |--------------------------------------------------------------------------
|
---|
| 20 | | Queue Connections
|
---|
| 21 | |--------------------------------------------------------------------------
|
---|
| 22 | |
|
---|
| 23 | | Here you may configure the connection information for each server that
|
---|
| 24 | | is used by your application. A default configuration has been added
|
---|
| 25 | | for each back-end shipped with Laravel. You are free to add more.
|
---|
| 26 | |
|
---|
| 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
---|
| 28 | |
|
---|
| 29 | */
|
---|
| 30 |
|
---|
| 31 | 'connections' => [
|
---|
| 32 |
|
---|
| 33 | 'sync' => [
|
---|
| 34 | 'driver' => 'sync',
|
---|
| 35 | ],
|
---|
| 36 |
|
---|
| 37 | 'database' => [
|
---|
| 38 | 'driver' => 'database',
|
---|
| 39 | 'table' => 'jobs',
|
---|
| 40 | 'queue' => 'default',
|
---|
| 41 | 'retry_after' => 90,
|
---|
| 42 | ],
|
---|
| 43 |
|
---|
| 44 | 'beanstalkd' => [
|
---|
| 45 | 'driver' => 'beanstalkd',
|
---|
| 46 | 'host' => 'localhost',
|
---|
| 47 | 'queue' => 'default',
|
---|
| 48 | 'retry_after' => 90,
|
---|
| 49 | ],
|
---|
| 50 |
|
---|
| 51 | 'sqs' => [
|
---|
| 52 | 'driver' => 'sqs',
|
---|
| 53 | 'key' => env('SQS_KEY', 'your-public-key'),
|
---|
| 54 | 'secret' => env('SQS_SECRET', 'your-secret-key'),
|
---|
| 55 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
|
---|
| 56 | 'queue' => env('SQS_QUEUE', 'your-queue-name'),
|
---|
| 57 | 'region' => env('SQS_REGION', 'us-east-1'),
|
---|
| 58 | ],
|
---|
| 59 |
|
---|
| 60 | 'redis' => [
|
---|
| 61 | 'driver' => 'redis',
|
---|
| 62 | 'connection' => 'default',
|
---|
| 63 | 'queue' => env('REDIS_QUEUE', 'default'),
|
---|
| 64 | 'retry_after' => 90,
|
---|
| 65 | 'block_for' => null,
|
---|
| 66 | ],
|
---|
| 67 |
|
---|
| 68 | ],
|
---|
| 69 |
|
---|
| 70 | /*
|
---|
| 71 | |--------------------------------------------------------------------------
|
---|
| 72 | | Failed Queue Jobs
|
---|
| 73 | |--------------------------------------------------------------------------
|
---|
| 74 | |
|
---|
| 75 | | These options configure the behavior of failed queue job logging so you
|
---|
| 76 | | can control which database and table are used to store the jobs that
|
---|
| 77 | | have failed. You may change them to any database / table you wish.
|
---|
| 78 | |
|
---|
| 79 | */
|
---|
| 80 |
|
---|
| 81 | 'failed' => [
|
---|
| 82 | 'database' => env('DB_CONNECTION', 'mysql'),
|
---|
| 83 | 'table' => 'failed_jobs',
|
---|
| 84 | ],
|
---|
| 85 |
|
---|
| 86 | ];
|
---|