In Lumen / Laravel I want to send a message to a given queue.
by default I installed it in Redis, I would like to send it to another queue server, as this will take care of another application.
I know I can do $queue->pushRaw('payload'); However, for me there is no subsequent way to select a connection.
I know that I can use Facade to create my queue as such:
$connection = Queue::connection('connection_name'); $connection->pushOn('queue_name', $job)
However, I do this in Lumen, and would like not to include the Facade for this aspect only. In addition, I would like to know how to do this, as I would like to go through IoC through the job event handler.
Version Lumen / Laravel 5.2.
source share