Connection option is not working
zek opened this issue · 1 comments
zek commented
Defining connection option in the command line is not working. Always using default connection
php artisan rabbitevents:listen queue --connection="custom"
I suspect it is because of following line
masterjus commented
It also requires to add an additional functionality for publishing.
SomeEvent::connection('custom')->publish([]);
and the helper function should receive parameters like
publish('event.name', $payload, $parameters = ['connection' => 'custom']);
The connection config couldn't be resolved in the boot method of the service provider as it does now.