You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.4 KiB

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