@@ -5,7 +5,7 @@ RabbitMQ driver for Laravel
55
66Require this package in your composer.json and run composer update:
77
8- "fintech-fab/laravel-queue-rabbitmq": "4.2"
8+ "fintech-fab/laravel-queue-rabbitmq": "4.2-nopecl "
99
1010or run:
1111
@@ -26,26 +26,30 @@ now you are able to configure your connections in queue.php:
2626 'connections' => [
2727
2828 'rabbitmq' => [
29- 'driver' => 'rabbitmq',
29+ 'driver' => 'rabbitmq',
3030
31- 'host' => '',
32- 'port' => '' ,
31+ 'host' => '',
32+ 'port' => 5672 ,
3333
34- 'vhost' => '',
35- 'login' => '',
36- 'password' => '',
34+ 'vhost' => '/ ',
35+ 'login' => '',
36+ 'password' => '',
3737
38- 'queue' => '', // name of the default queue
38+ 'queue' => '', // name of the default queue,
3939
40- 'exchange_name' => '', // name of the exchange
41-
42- // Type of your exchange
43- // Can be AMQP_EX_TYPE_DIRECT or AMQP_EX_TYPE_FANOUT
44- // see documentation for more info
45- // http://www.rabbitmq.com/tutorials/amqp-concepts.html
46- 'exchange_type' => AMQP_EX_TYPE_DIRECT,
47- 'exchange_flags' => AMQP_DURABLE,
40+ 'queue_params' => [
41+ 'passive' => false,
42+ 'durable' => true,
43+ 'exclusive' => false,
44+ 'auto_delete' => false,
45+ ],
4846
47+ 'exchange_params' => [
48+ 'type' => 'direct', // more info at http://www.rabbitmq.com/tutorials/amqp-concepts.html
49+ 'passive' => false,
50+ 'durable' => true, // the exchange will survive server restarts
51+ 'auto_delete' => false, // the exchange won't be deleted once the channel is closed.
52+ ],
4953
5054 ],
5155
0 commit comments