Solution 1:
Use the onConnection()
method as follows (using the podcast example from the Laravel queues documentation page):
ProcessPodcast::dispatch($podcast)->onConnection('sync');
Use the onConnection()
method as follows (using the podcast example from the Laravel queues documentation page):
ProcessPodcast::dispatch($podcast)->onConnection('sync');