Laravel - Queues - Dispatching To A Particular Connection

If your application interacts with multiple queue connections, you may specify which connection to push a job to using the onConnection method:

    
    onConnection('sqs');
        }
    }
	

You may chain the onConnection and onQueue methods together to specify the connection and the queue for a job:

    
    ProcessPodcast::dispatch($podcast)
                  ->onConnection('sqs')
                  ->onQueue('processing');
	

Alternatively, you may specify the job's connection by calling the onConnection method within the job's constructor:

    
    onConnection('sqs');
        }
    }