@@ -13,42 +13,9 @@ RabbitMQ Queue driver for Laravel
13132 . Add LaravelQueueRabbitMQServiceProvider to ` providers ` array in ` config/app.php ` :
1414
1515 VladimirYuldashev\LaravelQueueRabbitMQ\LaravelQueueRabbitMQServiceProvider::class,
16-
17- 3 . Add these lines to ` config/queue.php ` file to ` connections ` array:
18-
19- 'rabbitmq' => [
20- 'driver' => 'rabbitmq',
21-
22- 'host' => env('RABBITMQ_HOST', '127.0.0.1'),
23- 'port' => env('RABBITMQ_PORT', 5672),
24-
25- 'vhost' => env('RABBITMQ_VHOST', '/'),
26- 'login' => env('RABBITMQ_LOGIN', 'guest'),
27- 'password' => env('RABBITMQ_PASSWORD', 'guest'),
28-
29- 'queue' => env('RABBITMQ_QUEUE'), // name of the default queue,
3016
31- 'exchange_declare' => env('RABBITMQ_EXCHANGE_DECLARE', true), // create the exchange if not exists
32- 'queue_declare_bind' => env('RABBITMQ_QUEUE_DECLARE_BIND', true), // create the queue if not exists and bind to the exchange
17+ 3 . Add these properties to ` .env ` with proper values:
3318
34- 'queue_params' => [
35- 'passive' => env('RABBITMQ_QUEUE_PASSIVE', false),
36- 'durable' => env('RABBITMQ_QUEUE_DURABLE', true),
37- 'exclusive' => env('RABBITMQ_QUEUE_EXCLUSIVE', false),
38- 'auto_delete' => env('RABBITMQ_QUEUE_AUTODELETE', false),
39- ],
40-
41- 'exchange_params' => [
42- 'name' => env('RABBITMQ_EXCHANGE_NAME', null),
43- 'type' => env('RABBITMQ_EXCHANGE_TYPE', 'direct'), // more info at http://www.rabbitmq.com/tutorials/amqp-concepts.html
44- 'passive' => env('RABBITMQ_EXCHANGE_PASSIVE', false),
45- 'durable' => env('RABBITMQ_EXCHANGE_DURABLE', true), // the exchange will survive server restarts
46- 'auto_delete' => env('RABBITMQ_EXCHANGE_AUTODELETE', false),
47- ],
48-
49- ],
50-
51- 4 . Add these properties to ` .env ` with proper values:
5219
5320 QUEUE_DRIVER=rabbitmq
5421
@@ -70,6 +37,6 @@ Unit tests will be provided soon.
7037####Contribution
7138You can contribute to this package by discovering bugs and opening issues. Enjoy!
7239
73- ####Supported versions of Laravel
40+ ####Supported versions of Laravel (+Lumen)
74414.0, 4.1, 4.2, 5.0, 5.1, 5.2, 5.3
7542The version is being matched by the release tag of this library.
0 commit comments