Replies: 1 comment 2 replies
-
Does using the Queue component help with your situation? (i.e. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've implemented the observer pattern in my project by adding an Event and a Listener and created an
EventServiceProvider
like so:which I registered in
config/app.php
like so:This should be working right?
Now the real question.
In Laravel you can queue your listeners implementing the
Illuminate\Contracts\Queue\ShouldQueue
contract and defining aqueue
property on the Listener classpublic string $queue = 'listeners'
as described here.Now, although the ShouldQueue contract is available in Laravel Zero, it seems to me that everything else queue related is missing, starting with artisan commands. Am I right? If so, is it something that could be added somehow?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions