make:event --broadcast #46921
Unanswered
khalyomede
asked this question in
Ideas
Replies: 0 comments
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.
-
Currently by default when you do not customize Laravel's stubs, you have this when creating a new event through
artisan make:event
:I humbly think (no data about it sorry) Event/Listeners pattern is not primarily used to send real time events. I like this pattern to lighten my controllers and put every asynchronous tasks inside of it, or even synchronous tasks when it helps make the code more readable/reusable across different controllers/commands.
I propose by default that the events are brodcast-less, and we can specify if we want a brodcastable event behind a flag.
By default
Brodcastable event
Beta Was this translation helpful? Give feedback.
All reactions