mercredi 3 avril 2019

Defining the Queue for an event in laravel

Hej, i have an event and a listener for this event, so far, so good. The Listener is queueable, but it will always be set onto the "default" queue.

In my case, i need this to be flexible, so i can define the queue when the event is fired, but i have not found anything for this purpose.

What i do need is something like this:

event(testEvent::class, [['Some', 'thing']])->onQueue(80);

But there is no onQueue method for this.

How can i set my event on Queue X ???

(laravel 5.8.9)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire